[MacPorts] #47773: libcryptopp @5.6.2: also install the dynamic library
MacPorts
noreply at macports.org
Wed Jul 1 19:15:31 PDT 2015
#47773: libcryptopp @5.6.2: also install the dynamic library
--------------------------+-----------------------
Reporter: flyaaway@… | Owner: raphael@…
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: fixed | Keywords:
Port: libcryptopp |
--------------------------+-----------------------
Comment (by alexander.afanasyev@…):
Please revert this patch or ensure that the shared library conforms to OS
X:
- extension is .dylib not .so
- it contains proper rpath, pointing to `${prefix}/lib/libcryptopp.so`,
not just `libcryptopp.so`
The last part is actually critical for my project. When compiling, the
linker prefers the dynamic library (according to my research, on OSX this
behavior is hard-coded and cannot be changed), which includes an invalid
entry to the shared libraries used section:
{{{
otool -L /opt/local/bin/<app>
/opt/local/bin/ndnping:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 1153.18.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security
(compatibility version 1.0.0, current version 57031.20.26)
...
libcryptopp.so (compatibility version 0.0.0, current version
0.0.0)
...
/opt/local/lib/libsqlite3.0.dylib (compatibility version 9.0.0,
current version 9.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
version 120.0.0)}}}
As a result, my package fails to work.
--
Ticket URL: <https://trac.macports.org/ticket/47773#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list