summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2024-06-22 15:31:05 +0530
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>2024-06-25 10:05:27 +0100
commitaae5c00f2492996fce8d4d126e130cdbdac7b8ab (patch)
tree0e2680660e990864854146a0dc0388b4a9be4d85
parentc29e07aeb7e7a464ef4924650446e59007434f9c (diff)
cargo-c.recipe: Ensure that we can change the id and rpath
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: changing install names or rpaths can't be redone for: cargo-cinstall (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names) Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1498>
-rw-r--r--recipes/build-tools/cargo-c.recipe1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes/build-tools/cargo-c.recipe b/recipes/build-tools/cargo-c.recipe
index 5549d8a7..13df28b4 100644
--- a/recipes/build-tools/cargo-c.recipe
+++ b/recipes/build-tools/cargo-c.recipe
@@ -25,3 +25,4 @@ class Recipe(recipe.Recipe):
if self.config.platform == Platform.DARWIN:
self.set_env('OPENSSL_LIB_DIR', self.config.libdir)
self.set_env('OPENSSL_INCLUDE_DIR', os.path.join(self.config.prefix, 'include'))
+ self.set_env('RUSTFLAGS', "-C link-args=-Wl,-headerpad_max_install_names")