summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-08-17 13:00:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-08-17 13:00:13 (GMT)
commit038f3e240c5bb75fd96533b308020772ab0a991f (patch)
tree19ba9019249dc39b2218fb6dafe67e45cd391170 /Modules
parent889aeeb48c45672497580181e015a9a1bbd1416d (diff)
downloadCMake-038f3e240c5bb75fd96533b308020772ab0a991f.zip
CMake-038f3e240c5bb75fd96533b308020772ab0a991f.tar.gz
CMake-038f3e240c5bb75fd96533b308020772ab0a991f.tar.bz2
ENH: use the correct flag for the linker
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Darwin.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index 6792947..5f14228 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -6,8 +6,8 @@ SET(CMAKE_SHARED_MODULE_PREFIX "lib")
SET(CMAKE_SHARED_MODULE_SUFFIX ".so")
SET(CMAKE_MODULE_EXISTS 1)
SET(CMAKE_DL_LIBS "")
-SET(CMAKE_C_LINK_FLAGS "-search_paths_first -headerpad_max_install_names")
-SET(CMAKE_CXX_LINK_FLAGS "-search_paths_first -headerpad_max_install_names")
+SET(CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first -headerpad_max_install_names")
+SET(CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first -headerpad_max_install_names")
SET(CMAKE_PLATFORM_HAS_INSTALLNAME 1)
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names")
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")