Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / cm / cmake / 006-darwin-always-set-runtime-c-flag.diff
blobdc10e6b342311afe17fa71a1fb5735914f24e90b
1 Revert of commit 1af23c4de2c7d58c06171d70b37794b5c860d5f4.
2 --- b/Modules/Platform/Darwin.cmake
3 +++ a/Modules/Platform/Darwin.cmake
4 @@ -47,9 +47,7 @@
5 set(CMAKE_SHARED_MODULE_SUFFIX ".so")
6 set(CMAKE_MODULE_EXISTS 1)
7 set(CMAKE_DL_LIBS "")
8 +set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
9 -if(NOT "${_CURRENT_OSX_VERSION}" VERSION_LESS "10.5")
10 - set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
11 -endif()
13 foreach(lang C CXX OBJC OBJCXX)
14 set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")