diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-09-20 10:37:10 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-09-20 10:37:16 +0300 |
commit | 288d4bf31399f474aadcd16b9a800aade0741aa2 (patch) | |
tree | 280a4f78dcba13b7377b8c140dcf2bb2c17c1614 /solenv | |
parent | 90fc5593a44f41489719bc882db21813416f80da (diff) |
Move -isysroot from gb_CFLAGS/gb_CXXFLAGS to CC/CXX
That is a much better place for it. The gb_C(XX)FLAGS don't get passed
on to "external" modules, so they should not contain flags that are
essential for the compilation to work at all. I think.
At least for me, in my MacOSX SDK 10.4 -based build tree, using Xcode
3 installed in /Xcode3, on OS X 10.8, the -isysroot is essential for
liborcus to compile.
Change-Id: I1f11c690585e4ba512eb87d2fddf11872b91dd57
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/macosx.mk | 2 | ||||
-rw-r--r-- | solenv/inc/unxmacx.mk | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk index 3d6810bb184b..e81f0f5e1e16 100644 --- a/solenv/gbuild/platform/macosx.mk +++ b/solenv/gbuild/platform/macosx.mk @@ -49,7 +49,6 @@ gb_OSDEFS := \ gb_CFLAGS := \ - -isysroot $(gb_SDKDIR) \ $(gb_CFLAGS_COMMON) \ -fPIC \ -fno-strict-aliasing \ @@ -59,7 +58,6 @@ gb_CFLAGS := \ # "Re: [dev] warnings01: -Wnon-virtual-dtor" message to dev@openoffice.org from # Feb 1, 2006: gb_CXXFLAGS := \ - -isysroot $(gb_SDKDIR) \ $(gb_CXXFLAGS_COMMON) \ -fPIC \ -Wno-ctor-dtor-privacy \ diff --git a/solenv/inc/unxmacx.mk b/solenv/inc/unxmacx.mk index a5ea2871de48..0a58f4cc10b8 100644 --- a/solenv/inc/unxmacx.mk +++ b/solenv/inc/unxmacx.mk @@ -49,7 +49,7 @@ CDEFS+=-DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY $(PROCESSOR_DEFI #.EXPORT: MACOSX_DEPLOYMENT_TARGET CDEFS+:=-DQUARTZ -EXTRA_CDEFS+:=-isysroot $(MACOSX_SDK_PATH) -DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) -DMAC_OS_X_VERSION_MAX_ALLOWED=$(MAC_OS_X_VERSION_MAX_ALLOWED) -DMACOSX_SDK_VERSION=$(MACOSX_SDK_VERSION) +EXTRA_CDEFS+:=-DMAC_OS_X_VERSION_MIN_REQUIRED=$(MAC_OS_X_VERSION_MIN_REQUIRED) -DMAC_OS_X_VERSION_MAX_ALLOWED=$(MAC_OS_X_VERSION_MAX_ALLOWED) -DMACOSX_SDK_VERSION=$(MACOSX_SDK_VERSION) # Name of library where static data members are initialized # STATICLIBNAME=static$(DLLPOSTFIX) |