cmake: revert cmake support for 10.4 Tiger

This is a reversed patch of https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6426.

_CURRENT_OSX_VERSION isn't set properly, which causes this condition to fail,
which means we don't get CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG which means
we can't compile libcxx. Ugh.

+17 -1
+14
pkgs/development/tools/build-managers/cmake/darwin-always-set-runtime-c-flag.patch
··· 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() 12 + 13 + foreach(lang C CXX OBJC OBJCXX) 14 + set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
+3 -1
pkgs/development/tools/build-managers/cmake/default.nix
··· 36 36 37 37 ] ++ lib.optional stdenv.isCygwin ./3.2.2-cygwin.patch 38 38 # Derived from https://github.com/curl/curl/commit/31f631a142d855f069242f3e0c643beec25d1b51 39 - ++ lib.optional (stdenv.isDarwin && isBootstrap) ./remove-systemconfiguration-dep.patch; 39 + ++ lib.optional (stdenv.isDarwin && isBootstrap) ./remove-systemconfiguration-dep.patch 40 + # On Darwin, always set CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG. 41 + ++ lib.optional stdenv.isDarwin ./darwin-always-set-runtime-c-flag.patch; 40 42 41 43 outputs = [ "out" ] 42 44 ++ lib.optionals buildDocs [ "man" "info" ];