diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-17 14:41:27 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-17 14:41:27 (GMT) |
commit | 68c2dd8009fc4f82d25b0c6cb0380abb9f3f41ba (patch) | |
tree | 4bf0fbfe68632265a21e10ff742f52f83e1d3281 /Modules/Platform | |
parent | e8ced6a0e203f6a6c73027eb9c70cc98c9d45f6c (diff) | |
download | CMake-68c2dd8009fc4f82d25b0c6cb0380abb9f3f41ba.zip CMake-68c2dd8009fc4f82d25b0c6cb0380abb9f3f41ba.tar.gz CMake-68c2dd8009fc4f82d25b0c6cb0380abb9f3f41ba.tar.bz2 |
COMP: also use -Wl,-relax and -lc -lnss etc. when using the IBM compiler
Alex
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/BlueGeneL.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/Platform/BlueGeneL.cmake b/Modules/Platform/BlueGeneL.cmake index 1eb5072..dc334cc 100644 --- a/Modules/Platform/BlueGeneL.cmake +++ b/Modules/Platform/BlueGeneL.cmake @@ -24,9 +24,17 @@ INCLUDE(Platform/UnixPaths) IF(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_C_LINK_EXECUTABLE "<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") +ELSE(CMAKE_COMPILER_IS_GNUCC) + # when using IBM xlc we probably don't want to link to -lgcc + SET(CMAKE_C_LINK_EXECUTABLE + "<CMAKE_C_COMPILER> -Wl,-relax <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lc -lnss_files -lnss_dns -lresolv") ENDIF(CMAKE_COMPILER_IS_GNUCC) IF(CMAKE_COMPILER_IS_GNUCXX) SET(CMAKE_CXX_LINK_EXECUTABLE - "<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") + "<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") +ELSE(CMAKE_COMPILER_IS_GNUCXX) + # when using the IBM xlC we probably don't want to link to -lgcc + SET(CMAKE_CXX_LINK_EXECUTABLE + "<CMAKE_CXX_COMPILER> -Wl,-relax <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lstdc++,-lc -lnss_files -lnss_dns -lresolv") ENDIF(CMAKE_COMPILER_IS_GNUCXX) |