From 2509e24afe23f2e3d4d15c73a9e2f6843daf9062 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 12 Jul 2007 16:15:29 -0400 Subject: [PATCH] ENH: add the static libs always to the link libs, if they are not used it shouldn't hurt Alex --- Modules/Platform/BlueGeneL.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Modules/Platform/BlueGeneL.cmake b/Modules/Platform/BlueGeneL.cmake index 5d9111b20..2db0a41f4 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 + " -o -Wl,-lgcc,-lc -lnss_files -lnss_dns -lresolv") +ENDIF(CMAKE_COMPILER_IS_GNUCC) + +IF(CMAKE_COMPILER_IS_GNUCXX) + SET(CMAKE_CXX_LINK_EXECUTABLE + " -o -Wl,-lstdc++,-lgcc,-lc -lnss_files -lnss_dns -lresolv") +ENDIF(CMAKE_COMPILER_IS_GNUCXX)