Add Makefile code to find CRT_glob.o using the native target when compiling on Cygwin or Msys2 host

This commit is contained in:
Jens Steube
2016-11-28 15:20:10 +01:00
parent 6eced901c7
commit cd3fae958d
2 changed files with 37 additions and 5 deletions
+8
View File
@@ -258,6 +258,14 @@ OBJS_ALL := affinity autotune benchmark bitmap bitops combinator
NATIVE_OBJS := $(foreach OBJ,$(OBJS_ALL),obj/$(OBJ).NATIVE.o)
NATIVE_SHARED_OBJS := $(foreach OBJ,$(OBJS_ALL),obj/$(OBJ).NATIVE.SHARED.o)
ifeq ($(UNAME),CYGWIN)
NATIVE_OBJS += $(CRT_GLOB)
endif # CYGWIN
ifeq ($(UNAME),MSYS2)
NATIVE_OBJS += $(CRT_GLOB)
endif # MSYS2
LINUX_32_OBJS := $(foreach OBJ,$(OBJS_ALL),obj/$(OBJ).LINUX.32.o)
LINUX_64_OBJS := $(foreach OBJ,$(OBJS_ALL),obj/$(OBJ).LINUX.64.o)