You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libz.1.2.11.dylib:
libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
A proper relocatable shared lib should be:
libz.1.2.11.dylib:
@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
I won't open an issue for all recipes suffering of this issue, but among key recipes, I've seen at least: zlib, libcurl & openssl.
For zlib there is a simple explanation:
upstream CMakeLists set a very low min CMake version, which disable rpath in its policy
even with the proper CMake policy, files are copied manually in the recipe during installation instead of installed properly (install target of CMake is not just a simple copy of files, it properly changes rpath by removing absolute paths set in the build tree and replacing by default everything by @rpath/).
The text was updated successfully, but these errors were encountered:
SpaceIm
changed the title
[package] zlib: procudes non-relocatable shared lib on macOS (no LC_ID_DYLIB @rpath/libz.1.dylib)
[package] zlib: conan recipe produces a non-relocatable shared lib on macOS (no LC_ID_DYLIB @rpath/libz.1.dylib)
Jan 24, 2022
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
conan install zlib/1.2.11@ -o zlib:shared=True -b missing
otool -L libz.1.2.11.dylib
Logs (Include/Attach if Applicable)
currently:
A proper relocatable shared lib should be:
I won't open an issue for all recipes suffering of this issue, but among key recipes, I've seen at least: zlib, libcurl & openssl.
For zlib there is a simple explanation:
@rpath/
).The text was updated successfully, but these errors were encountered: