libobjc2: another makefile hack to get mingw to declare strdup

main
ericwa 16 years ago
parent 56341816a5
commit 39b0655877

@ -86,9 +86,11 @@ ifneq ($(findstring gcc, $(CC)),)
libobjc_CFLAGS += -fgnu89-inline
endif
# Hack to get the __sync_* GCC builtins to work on Windows
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
# Hack to get the __sync_* GCC builtins to work on Windows
libobjc_CFLAGS += -march=i586
# Hack to get mingw to provide declaration for strdup (since it is non-standard)
libobjc_CPPFLAGS += -U__STRICT_ANSI__
endif
include $(GNUSTEP_MAKEFILES)/aggregate.make

@ -15,9 +15,11 @@ toydispatch_LIBRARIES_DEPEND_UPON += -lpthread
toydispatch_CFLAGS += -Werror -std=c99
# Hack to get the __sync_* GCC builtins to work on Windows
ifeq ($(GNUSTEP_TARGET_OS), mingw32)
# Hack to get the __sync_* GCC builtins to work on Windows
toydispatch_CFLAGS += -march=i586
# Hack to get mingw to provide declaration for strdup (since it is non-standard)
toydispatch_CPPFLAGS += -U__STRICT_ANSI__
endif
include $(GNUSTEP_MAKEFILES)/library.make

Loading…
Cancel
Save