summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-08-16 13:22:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-08-16 13:22:29 (GMT)
commit8ee6fc059839f79999a8bb187b4d55e87c2d5d8d (patch)
treeda676e53a0c7ee0778701fb701281385352820f2 /Modules
parent5fdb818c84b2b88f6f41f8712963a06160611ee0 (diff)
downloadCMake-8ee6fc059839f79999a8bb187b4d55e87c2d5d8d.zip
CMake-8ee6fc059839f79999a8bb187b4d55e87c2d5d8d.tar.gz
CMake-8ee6fc059839f79999a8bb187b4d55e87c2d5d8d.tar.bz2
ENH: make sure osx searches static and shared libs like other platforms
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 39a5412..6792947 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 "-headerpad_max_install_names")
-SET(CMAKE_CXX_LINK_FLAGS "-headerpad_max_install_names")
+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_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")