Skip to content

Commit

Permalink
Use fix_apple_shared_install_name to shush KB-H077?
Browse files Browse the repository at this point in the history
> post_package(): WARN: [APPLE RELOCATABLE SHARED LIBS (KB-H077)] install_name dir of these shared libs is not @rpath: libruby.3.1.dylib, libruby.dylib

#18338 (comment)
  • Loading branch information
jmarrec committed Jan 24, 2024
1 parent c1a02db commit f073d6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/ruby/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os, to_apple_arch
from conan.tools.apple import is_apple_os, fix_apple_shared_install_name, to_apple_arch
from conan.tools.build import cross_building
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import apply_conandata_patches, collect_libs, copy, export_conandata_patches, get, replace_in_file, rm, rmdir
Expand Down Expand Up @@ -230,6 +230,7 @@ def package(self):
rmdir(self, os.path.join(self.package_folder, "share"))
rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
rm(self, pattern="*.pdb", folder=os.path.join(self.package_folder, "lib"))
fix_apple_shared_install_name(self)

# install the enc/*.a / ext/*.a libraries
if not self.options.shared and self.options.with_static_linked_ext:
Expand Down

0 comments on commit f073d6f

Please sign in to comment.