[Buildroot] [PATCH v6 06/10] core: sanitize RPATH in host tree at the very end of the build
Wolfgang Grandegger
wg at grandegger.com
Tue Jul 4 16:22:35 UTC 2017
We introduce the "finalize-host" target for that purpose.
We need the patchelf host utility to check and fix the rpath.
Signed-off-by: Wolfgang Grandegger <wg at grandegger.com>
---
Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d8db3f4..f5646ad 100644
--- a/Makefile
+++ b/Makefile
@@ -550,7 +550,15 @@ $(BUILD_DIR)/buildroot-config/auto.conf: $(BR2_CONFIG)
prepare: $(BUILD_DIR)/buildroot-config/auto.conf
.PHONY: world
-world: target-post-image
+world: target-post-image host-finalize
+
+.PHONY: host-finalize
+host-finalize:
+ @$(call MESSAGE,"Rendering the SDK relocatable")
+ $(TOPDIR)/support/scripts/fix-rpath host
+
+# We need patchelf for RPATH sanitization
+PACKAGES += host-patchelf
# Populating the staging with the base directories is handled by the skeleton package
$(STAGING_DIR):
--
2.7.4
More information about the buildroot
mailing list