diff options
author | L. E. Segovia <amy@centricular.com> | 2024-05-21 00:39:50 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2024-05-29 19:36:26 +0530 |
commit | 0c3cc929ec9a5e1c9fcae566aa68942434247890 (patch) | |
tree | 99a4274d78dda1b3c488b288db2e63168bbafb44 | |
parent | 1ca4dd4f80cafac74e896d45ed0991e5cc79d96e (diff) |
glib-tools: 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/build-tools/glib-tools.recipe | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/build-tools/glib-tools.recipe b/recipes/build-tools/glib-tools.recipe index 620fe9ec..b17f6833 100644 --- a/recipes/build-tools/glib-tools.recipe +++ b/recipes/build-tools/glib-tools.recipe @@ -29,3 +29,8 @@ class Recipe(recipe.Recipe): if self.config.platform == Platform.DARWIN: self.append_env('CFLAGS', '-Wno-error=int-conversion') + + 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}') |