diff options
author | L. E. Segovia <amy@centricular.com> | 2024-05-21 20:34:49 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2024-05-29 19:36:26 +0530 |
commit | c0bdaafd5893e394dc322381f33d1f315d307723 (patch) | |
tree | 3bc8ffc2ded97d99d85bffdc446bce00968930bb | |
parent | da3d01723d0f868327a0cd3b352586c8bcd61972 (diff) |
glib: Work around Meson not setting a RPATH entry to let dyld find dependencies
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1481>
-rw-r--r-- | recipes/glib.recipe | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/glib.recipe b/recipes/glib.recipe index ec609ae4..15e9b609 100644 --- a/recipes/glib.recipe +++ b/recipes/glib.recipe @@ -250,6 +250,11 @@ class Recipe(recipe.Recipe): raise FatalError(_("Add specific for other Linux distributions here")) self._set_gio_flags(path1, path2, use_old_uri_scheme) + if self.config.platform in [Platform.DARWIN, Platform.IOS]: + # Meson doesn't yet introduce rpaths properly. + # https://github.com/mesonbuild/meson/issues/2121#issuecomment-347535874 + self.append_env('LDFLAGS', f'-Wl,-rpath,{self.config.libdir}') + def post_install(self): if self.config.target_platform in [Platform.IOS, Platform.DARWIN]: # For the universal build we need to ship glibconfig.h of both |