Skip to content

Commit

Permalink
relocatable shared lib on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Feb 21, 2022
1 parent 8c6cde7 commit c7e3edd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/libvpx/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ def _configure_autotools(self):
def build(self):
for patch in self.conan_data.get("patches", {}).get(self.version, []):
tools.patch(**patch)
# relocatable shared lib on macOS
tools.replace_in_file(os.path.join(self._source_subfolder, "build", "make", "Makefile"),
"-dynamiclib",
"-dynamiclib -install_name @rpath/$$(SONAME)")
with tools.vcvars(self.settings) if self._is_msvc else tools.no_op():
autotools = self._configure_autotools()
autotools.make()
Expand Down

0 comments on commit c7e3edd

Please sign in to comment.