[MacPorts] #63261: cmake @3.20.5_1: rpath error when linking any project on 10.4
MacPorts
noreply at macports.org
Fri Jul 30 00:35:18 UTC 2021
#63261: cmake @3.20.5_1: rpath error when linking any project on 10.4
-------------------------+-----------------------
Reporter: evanmiller | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: tiger
Port: cmake |
-------------------------+-----------------------
Comment (by kencu):
Yes, only Tiger has changed, in the commit you noted
<https://gitlab.kitware.com/cmake/cmake/-/commit/4aed96e2309e64571aabfda263b3ca4c4f62d619>
In this file:
{{{
Modules/Platform/Darwin.cmake
}}}
{{{
set(CMAKE_SHARED_MODULE_SUFFIX ".so")
set(CMAKE_MODULE_EXISTS 1)
set(CMAKE_DL_LIBS "")
-
- # Enable rpath support for 10.5 and greater where it is known to work.
- if("${DARWIN_MAJOR_VERSION}" GREATER 8)
- set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
- endif()
+ set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
foreach(lang C CXX OBJC OBJCXX)
set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version
")
}}}
So it would seem that a simple patch that reverts that, and we are back in
business on Tiger.
Luckily MacPorts has almost exclusively avoided using @rpath references,
so we should be undamaged here.
--
Ticket URL: <https://trac.macports.org/ticket/63261#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list