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.
This commit is contained in:
@@ -876,7 +876,7 @@ if(UNIX AND NOT APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed
|
# 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))
|
if((NOT WITH_HEADLESS) AND (NOT WITH_GHOST_SDL))
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
|
@@ -247,7 +247,7 @@ C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wunused-par
|
|||||||
CC_WARN = ['-Wall']
|
CC_WARN = ['-Wall']
|
||||||
CXX_WARN = ['-Wno-invalid-offsetof', '-Wno-sign-compare']
|
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 = False
|
||||||
BF_PROFILE_CCFLAGS = ['-pg','-g']
|
BF_PROFILE_CCFLAGS = ['-pg','-g']
|
||||||
|
Reference in New Issue
Block a user