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 /configure.ac | |
parent | loplugin if-body warnings (diff) | |
download | core-7f213aaae8f1ccb23f43852d7c22baf766685763.tar.gz core-7f213aaae8f1ccb23f43852d7c22baf766685763.zip |
Use -fvisibility=hidden also for 3rd-party libs for iOS
Change-Id: Ib2806d71f9c2dc18c64f2c92012eaa1c77ddd9d2
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a917cfbb0bfd..8670deccc89a 100644 --- a/configure.ac +++ b/configure.ac @@ -2942,8 +2942,11 @@ if test $_os = iOS; then if test "$ENABLE_LTO" = TRUE; then lto=-flto fi - CC="`xcrun -find clang` -arch $arch -isysroot $sysroot $lto $versionmin" - CXX="`xcrun -find clang++` -arch $arch -isysroot $sysroot $lto $versionmin" + # Just add -fvisibility=hidden to CC and CXX directly so that the 3rd-party libs also + # get compiled with it, to avoid ld warnings when linking all that together into one + # executable. + CC="`xcrun -find clang` -arch $arch -fvisibility=hidden -isysroot $sysroot $lto $versionmin" + CXX="`xcrun -find clang++` -arch $arch -fvisibility=hidden -isysroot $sysroot $lto $versionmin" INSTALL_NAME_TOOL=`xcrun -find install_name_tool` AR=`xcrun -find ar` NM=`xcrun -find nm` |