summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/BlueGeneL.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-12 20:15:29 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-12 20:15:29 (GMT)
commit2509e24afe23f2e3d4d15c73a9e2f6843daf9062 (patch)
tree6ce70be922a2a10a4e55ec5a41ef0562a54d2a80 /Modules/Platform/BlueGeneL.cmake
parent3e72dbe4c2dab284c563318abb8ae5966817a588 (diff)
downloadCMake-2509e24afe23f2e3d4d15c73a9e2f6843daf9062.zip
CMake-2509e24afe23f2e3d4d15c73a9e2f6843daf9062.tar.gz
CMake-2509e24afe23f2e3d4d15c73a9e2f6843daf9062.tar.bz2
ENH: add the static libs always to the link libs, if they are not used it shouldn't hurt
Alex
Diffstat (limited to 'Modules/Platform/BlueGeneL.cmake')
-rw-r--r--Modules/Platform/BlueGeneL.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Platform/BlueGeneL.cmake b/Modules/Platform/BlueGeneL.cmake
index 5d9111b..2db0a41 100644
--- a/Modules/Platform/BlueGeneL.cmake
+++ b/Modules/Platform/BlueGeneL.cmake
@@ -20,3 +20,13 @@ SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
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")
+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")
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)