summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-04 15:22:30 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-04 15:22:30 (GMT)
commitaf14f1f2c3750ba3cf9b9cc1a809a88b1878a5c3 (patch)
treea387a52ceabd8d1cac1d201b6669c26c4d59d7ab /Modules/Platform/Linux.cmake
parentc106cb2e2fcae39c29405c288c1858959504516d (diff)
downloadCMake-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.cmake3
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,")