@ -37,6 +37,28 @@ endif
INSTALL := dummy_install
INSTALL := dummy_install
i n c l u d e M a k e f i l e
i n c l u d e M a k e f i l e
i n c l u d e $( GNUSTEP_MAKEFILES ) / n a m e s . m a k e
# Hack to support -03 for Clang and get the __sync_* GCC builtins work
# -O3 requires -march=i586 on Linux x86-32, otherwise Clang compiles
# programs that segfaults if -fobjc-nonfragile-abi is used.
i f e q ( $( findstring linux , $ ( GNUSTEP_TARGET_OS ) ) , l i n u x )
ifeq ( $( GNUSTEP_TARGET_CPU) , ix86)
CFLAGS += -march= i586
endif
e n d i f
# Hack to get mingw to provide declaration for strdup (since it is non-standard)
i f e q ( $( GNUSTEP_TARGET_OS ) , m i n g w 3 2 )
${ LIBOBJC } _CPPFLAGS += -U__STRICT_ANSI__
e n d i f
# Shouldn't be needed starting with OpenBSD 5.2
i f e q ( $( findstring openbsd , `$ CC -dumpmachine `) , o p e n b s d )
LDFLAGS += -pthread
e l s e
LDFLAGS += -lpthread
e n d i f
LIB_DIR := $( shell gnustep-config --variable= GNUSTEP_$( GNUSTEP_INSTALLATION_DOMAIN) _LIBRARIES 2>/dev/null)
LIB_DIR := $( shell gnustep-config --variable= GNUSTEP_$( GNUSTEP_INSTALLATION_DOMAIN) _LIBRARIES 2>/dev/null)
i f e q ( $( LIB_DIR ) , )
i f e q ( $( LIB_DIR ) , )