diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-03-27 10:56:50 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-03-27 10:56:50 +0000 |
commit | 3c3076c640081f3e8cd756440601bcd8ddc98a13 (patch) | |
tree | c8a92670dd885cb1869b3fe654900ff2d332570d /wrappers | |
parent | 6d437fbce543a46dd2ba07736265626861b6401f (diff) |
cmake: Prevent ld to export symbols from libgcc/libstdc++.
Based on Vivek Dasmohapatra's Mesa patch on
http://lists.freedesktop.org/archives/mesa-dev/2015-March/079121.html
Fixes issue #330.
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wrappers/CMakeLists.txt b/wrappers/CMakeLists.txt index 7a4ceb78..acc4a69b 100644 --- a/wrappers/CMakeLists.txt +++ b/wrappers/CMakeLists.txt @@ -3,7 +3,7 @@ if (ENABLE_STATIC_LIBGCC) - add_linker_flags ("-static-libgcc") + add_linker_flags (-static-libgcc -Wl,--exclude-libs,libgcc.a) endif () if (ENABLE_STATIC_LIBSTDCXX) # Unfortunately for a long time static libstdcxx didn't built with -fPIC @@ -21,7 +21,7 @@ if (ENABLE_STATIC_LIBSTDCXX) unset (CMAKE_REQUIRED_LIBRARIES) unset (CMAKE_REQUIRED_FLAGS) if (STATIC_LIBSTDCXX_PIC) - add_linker_flags ("-static-libstdc++") + add_linker_flags (-static-libstdc++ -Wl,--exclude-libs,libstdc++.a) endif () endif () |