diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-11-28 20:59:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2013-11-28 21:07:57 +0400 |
commit | 683093b5c8df391eac957cfe0c76c33d46c3503e (patch) | |
tree | 1884b2146ce786400b8ffe93186792be73a95536 | |
parent | 764204baf2970b49863b915191ceaf090d44e49e (diff) |
CMake/Scons Build: disable explicit linking to libstdc++ on Linux/Unix.
It's not needed, this should happen automatically already, and if you build
against libc++ instead (as on recent FreeBSD), this would give build errors.
Ref T37477.
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | build_files/scons/config/linux-config.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cd4dee2a9e..6767fb92277 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -876,7 +876,7 @@ if(UNIX AND NOT APPLE) endif() # OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed - set(PLATFORM_LINKLIBS "-lutil -lc -lm -lpthread -lstdc++") + set(PLATFORM_LINKLIBS "-lutil -lc -lm -lpthread") if((NOT WITH_HEADLESS) AND (NOT WITH_GHOST_SDL)) find_package(X11 REQUIRED) diff --git a/build_files/scons/config/linux-config.py b/build_files/scons/config/linux-config.py index 743131ab32e..ce2d07f782c 100644 --- a/build_files/scons/config/linux-config.py +++ b/build_files/scons/config/linux-config.py @@ -247,7 +247,7 @@ C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wunused-par CC_WARN = ['-Wall'] CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare'] -LLIBS = ['util', 'c', 'm', 'dl', 'pthread', 'stdc++'] +LLIBS = ['util', 'c', 'm', 'dl', 'pthread'] BF_PROFILE = False BF_PROFILE_CCFLAGS = ['-pg','-g'] |