summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-12-01 14:21:26 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-12-08 10:29:39 +0100
commitd7a03eace06675fef7c0472cc7ebf9649dce4b12 (patch)
treedc16d5a56da8e7a145b43eab9d696a5b59aa6ae3
parent16671d5d4049b6441e430cae94dbe697de46ac06 (diff)
downloadOSELAS.Toolchain-d7a03eace06675fef7c0472cc7ebf9649dce4b12.tar.gz
OSELAS.Toolchain-d7a03eace06675fef7c0472cc7ebf9649dce4b12.tar.xz
cleanup: remove all rpaths
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--Kconfig2
-rw-r--r--rules/post/cleanup.make4
2 files changed, 6 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 3c6baaf..019e454 100644
--- a/Kconfig
+++ b/Kconfig
@@ -12,6 +12,7 @@ config _ptxconfig_MAGIC__
config BUILD_TOOLCHAIN
bool
+ select HOST_CHRPATH
default y
config NO_PLATFORM
@@ -79,6 +80,7 @@ source "workspace/rules/host-xz.in"
source "workspace/rules/host-zlib.in"
source "workspace/rules/host-libelf.in"
source "rules/host-autotools-autoconf.in"
+source "rules/host-chrpath.in"
source "rules/host-m4.in"
source "rules/host-system-perl.in"
diff --git a/rules/post/cleanup.make b/rules/post/cleanup.make
index 55abf33..95d3b63 100644
--- a/rules/post/cleanup.make
+++ b/rules/post/cleanup.make
@@ -9,6 +9,10 @@ $(STATEDIR)/world.cleanup: $(STATEDIR)/world.targetinstall
"$(PTXCONF_SYSROOT_CROSS)/"*/bin/ \
-type f \( -executable -o -name "*.so*" \) \
| xargs -n1 --verbose strip || true
+ find \
+ "$(PTXCONF_SYSROOT_CROSS)/" \
+ -type f \( -executable -o -name "*.so*" \) \
+ | xargs chrpath -k -d 2>/dev/null || true
@$(call touch)
world: $(STATEDIR)/world.cleanup