summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-05-10 23:45:38 +0300
committerTor Lillqvist <tml@iki.fi>2012-05-11 00:46:01 +0300
commit991e3520bc09a66504819d05807f10aa8de805ce (patch)
treece5f2c35912a23a4454df9706f7563bb61c739af /solenv/gbuild/platform
parent75e7643e22bcf674739ca890bfc06f80e872624b (diff)
Argh, make the use of -fvisibility=hidden actually happen
Move initialisations of gb_CFLAGS and gb_CXXFLAGS earlier, like in unxgcc.mk. Change-Id: I2382edad42f0f52bcbb062ec6930e2cfe12ec8ca
Diffstat (limited to 'solenv/gbuild/platform')
-rw-r--r--solenv/gbuild/platform/macosx.mk46
1 files changed, 23 insertions, 23 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index 5ad4f3d105b5..33488535fc0a 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -47,6 +47,29 @@ gb_OSDEFS := \
$(EXTRA_CDEFS) \
+gb_CFLAGS := \
+ -isysroot $(gb_SDKDIR) \
+ $(gb_CFLAGS_COMMON) \
+ -fPIC \
+ -fno-strict-aliasing \
+ #-Wshadow \ break in compiler headers already
+
+# For -Wno-non-virtual-dtor see <http://markmail.org/message/664jsoqe6n6smy3b>
+# "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 \
+ -Wno-non-virtual-dtor \
+ -fno-strict-aliasing \
+ -fsigned-char \
+ $(if $(filter TRUE,$(COM_GCC_IS_CLANG)),,-malign-natural) \
+ #-Wshadow \ break in compiler headers already
+ #-fsigned-char \ might be removed?
+ #-malign-natural \ might be removed?
+
ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE)
gb_COMPILERDEFS += \
-DHAVE_GCC_VISIBILITY_FEATURE \
@@ -71,29 +94,6 @@ gb_COMPILERDEFS += \
endif
-gb_CFLAGS := \
- -isysroot $(gb_SDKDIR) \
- $(gb_CFLAGS_COMMON) \
- -fPIC \
- -fno-strict-aliasing \
- #-Wshadow \ break in compiler headers already
-
-# For -Wno-non-virtual-dtor see <http://markmail.org/message/664jsoqe6n6smy3b>
-# "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 \
- -Wno-non-virtual-dtor \
- -fno-strict-aliasing \
- -fsigned-char \
- $(if $(filter TRUE,$(COM_GCC_IS_CLANG)),,-malign-natural) \
- #-Wshadow \ break in compiler headers already
- #-fsigned-char \ might be removed?
- #-malign-natural \ might be removed?
-
ifeq ($(HAVE_GCC_NO_LONG_DOUBLE),TRUE)
gb_CXXFLAGS += -Wno-long-double
endif