From 8ee6fc059839f79999a8bb187b4d55e87c2d5d8d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 16 Aug 2007 09:22:29 -0400 Subject: ENH: make sure osx searches static and shared libs like other platforms --- Modules/Platform/Darwin.cmake | 4 ++-- 1 file 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") -- cgit v0.12