libobjc2: Makefile hack to get the __sync_* GCC builtins to work on Windows

main
ericwa 16 years ago
parent 5238f95a77
commit 56341816a5

@ -86,5 +86,10 @@ ifneq ($(findstring gcc, $(CC)),)
libobjc_CFLAGS += -fgnu89-inline libobjc_CFLAGS += -fgnu89-inline
endif endif
# Hack to get the __sync_* GCC builtins to work on Windows
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
libobjc_CFLAGS += -march=i586
endif
include $(GNUSTEP_MAKEFILES)/aggregate.make include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/library.make include $(GNUSTEP_MAKEFILES)/library.make

@ -15,4 +15,9 @@ toydispatch_LIBRARIES_DEPEND_UPON += -lpthread
toydispatch_CFLAGS += -Werror -std=c99 toydispatch_CFLAGS += -Werror -std=c99
# Hack to get the __sync_* GCC builtins to work on Windows
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
toydispatch_CFLAGS += -march=i586
endif
include $(GNUSTEP_MAKEFILES)/library.make include $(GNUSTEP_MAKEFILES)/library.make

Loading…
Cancel
Save