From 174240f9be1581efbe64d83bc3c4658c1d185362 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 6 Nov 2011 13:14:47 +0000 Subject: [PATCH] * move DSO policy changes down a few lines to go under C/C++ flags section * ensure host isn't darwin as Apple doesn't use binutils git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43202 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ;