diff options
author | Brad King <brad.king@kitware.com> | 2009-12-04 15:22:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-12-04 15:22:30 (GMT) |
commit | af14f1f2c3750ba3cf9b9cc1a809a88b1878a5c3 (patch) | |
tree | a387a52ceabd8d1cac1d201b6669c26c4d59d7ab /Modules/Platform/Linux.cmake | |
parent | c106cb2e2fcae39c29405c288c1858959504516d (diff) | |
download | CMake-af14f1f2c3750ba3cf9b9cc1a809a88b1878a5c3.zip CMake-af14f1f2c3750ba3cf9b9cc1a809a88b1878a5c3.tar.gz CMake-af14f1f2c3750ba3cf9b9cc1a809a88b1878a5c3.tar.bz2 |
Remove GNU-specific flags from Linux.cmake
We remove the shared library compile/link flags "-fPIC" and "-shared"
because they are not provided by all compilers on Linux. This allows us
to drop code from the Linux-XL-*.cmake files that erases the bad flags.
All other supported compilers already provide their correct flags for
Linux in their own platform information files.
Diffstat (limited to 'Modules/Platform/Linux.cmake')
-rw-r--r-- | Modules/Platform/Linux.cmake | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake index bde19b3..6490dd1 100644 --- a/Modules/Platform/Linux.cmake +++ b/Modules/Platform/Linux.cmake @@ -1,7 +1,4 @@ -# GCC is the default compiler on Linux. SET(CMAKE_DL_LIBS "dl") -SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") -SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,") |