[Buildroot] [PATCH v4 06/11] core: sanitize RPATH in host tree at the very end of the build

Wolfgang Grandegger wg at grandegger.com
Tue Jun 27 10:26:42 UTC 2017


We need the patchelf host utility to check and fix the rpath.

Signed-off-by: Wolfgang Grandegger <wg at grandegger.com>
---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index bda4a05..e492342 100644
--- a/Makefile
+++ b/Makefile
@@ -551,6 +551,11 @@ prepare: $(BUILD_DIR)/buildroot-config/auto.conf
 
 .PHONY: world
 world: target-post-image
+	@$(call MESSAGE,"Rendering the SDK relocatable")
+	$(TOPDIR)/support/scripts/fix-rpath host
+
+# We need patchelf for RPATH sanitation
+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