summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2024-05-21 20:13:07 +0000
committerNirbheek Chauhan <nirbheek@centricular.com>2024-05-29 19:36:26 +0530
commitda3d01723d0f868327a0cd3b352586c8bcd61972 (patch)
treea640339851e1fca99e0588821812ad13ac89c30c
parent0c3cc929ec9a5e1c9fcae566aa68942434247890 (diff)
glib-networking: 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-networking.recipe5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/glib-networking.recipe b/recipes/glib-networking.recipe
index da4a40c2..4118e4c2 100644
--- a/recipes/glib-networking.recipe
+++ b/recipes/glib-networking.recipe
@@ -31,6 +31,11 @@ class Recipe(recipe.Recipe):
if self.config.target_platform != Platform.LINUX or self.config.cross_compiling():
self.deps.append('openssl')
+ 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):
# Meson does not generate la files
LibtoolLibrary('gioopenssl', None, None, None,