diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-10 15:25:07 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-11 13:15:02 +0300 |
commit | 7f213aaae8f1ccb23f43852d7c22baf766685763 (patch) | |
tree | 1a9f27a3cee6a236e29aef3ba68506de04648c31 /solenv | |
parent | 94c4a221556d27fd203a50396de5a3f02f00699e (diff) |
Use -fvisibility=hidden also for 3rd-party libs for iOS
Change-Id: Ib2806d71f9c2dc18c64f2c92012eaa1c77ddd9d2
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 7cb29836a8a3..c74785402025 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -82,7 +82,11 @@ endif ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE) -gb_VISIBILITY_FLAGS := -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden +gb_VISIBILITY_FLAGS := -DHAVE_GCC_VISIBILITY_FEATURE +# If CC or CXX already include -fvisibility=hidden, don't duplicate it +ifeq (,$(filter -fvisibility=hidden,$(CC))) +gb_VISIBILITY_FLAGS += -fvisibility=hidden +endif ifneq ($(HAVE_GCC_VISIBILITY_BROKEN),TRUE) gb_CXXFLAGS_COMMON += -fvisibility-inlines-hidden endif |