diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index b4ec4909ee..34dfcb947d 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -619,9 +619,6 @@ for level in $(HAIKU_DEBUG_LEVELS[2-]) { # analyze GCC version HOST_GCC_VERSION = [ FAnalyzeGCCVersion HOST_GCC_RAW_VERSION ] ; -# fix for new changes to DSO linking policies -HOST_LINKFLAGS += -Xlinker --no-as-needed ; - # set variables for gcc header options SetIncludePropertiesVariables HOST ; @@ -660,6 +657,12 @@ if $(HOST_ARCH) = m68k { HOST_KERNEL_PIC_LINKFLAGS = $(HAIKU_KERNEL_PIC_LINKFLAGS) ; } +if $(HOST_PLATFORM) != darwin { + # fix for new changes to DSO linking policies + HOST_LINKFLAGS += -Xlinker --no-as-needed ; +} + + # warning flags HOST_WARNING_CCFLAGS = -Wall -Wno-trigraphs -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wsign-compare ;