summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-16 19:02:14 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-16 19:02:14 (GMT)
commit6b0e5745ab7c874841952cf0d503ad7bede4a82f (patch)
tree563784e67f0ac79f9d0c7922c0732702b29edd99 /Modules/Platform
parenta7213b3e63688896428aa5ab9714d79c9d363d7c (diff)
downloadCMake-6b0e5745ab7c874841952cf0d503ad7bede4a82f.zip
CMake-6b0e5745ab7c874841952cf0d503ad7bede4a82f.tar.gz
CMake-6b0e5745ab7c874841952cf0d503ad7bede4a82f.tar.bz2
ENH: add -Wl,-relax to the default linker flags for BlueGene, otherwise you can get "relocation truncated to fit" errors
Alex
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/BlueGeneL.cmake9
1 files changed, 2 insertions, 7 deletions
diff --git a/Modules/Platform/BlueGeneL.cmake b/Modules/Platform/BlueGeneL.cmake
index b104ad9..1eb5072 100644
--- a/Modules/Platform/BlueGeneL.cmake
+++ b/Modules/Platform/BlueGeneL.cmake
@@ -23,15 +23,10 @@ INCLUDE(Platform/UnixPaths)
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_C_LINK_EXECUTABLE
- "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lgcc,-lc -lnss_files -lnss_dns -lresolv")
+ "<CMAKE_C_COMPILER> -Wl,-relax <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lgcc,-lc -lnss_files -lnss_dns -lresolv")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_LINK_EXECUTABLE
- "<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lstdc++,-lgcc,-lc -lnss_files -lnss_dns -lresolv")
+ "<CMAKE_CXX_COMPILER> -Wl,-relax <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lstdc++,-lgcc,-lc -lnss_files -lnss_dns -lresolv")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
-
-SET(CMAKE_CXX_LINK_SHARED_LIBRARY)
-SET(CMAKE_CXX_LINK_MODULE_LIBRARY)
-SET(CMAKE_C_LINK_SHARED_LIBRARY)
-SET(CMAKE_C_LINK_MODULE_LIBRARY)