From 8f570cd765d52da56b4cebd4e5149ab8ebceec7f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Thu, 31 Jul 2014 00:57:16 +0200 Subject: package/patchelf: new host package In some situations, users may want to tweak the dynamic section of the binaries (for example to add/set the RPATH to $ORIGIN/../lib). Because it is not trivial to do it properly from the Buildroot infrastructure, allow those users to use patchelf (e.g. from a post-build script) to tweak binaries. patchelf is able to: - modify an existing DT_RUNPATH tags - add a DT_RUNPATH tag if not already present - do the above to the DT_RPATH tag, too - set the path to the interpreter - remove DT_NEEDED tags - query a binary for the DT_RUNPATH/DT_RPATH tag, or for the interpreter path Does not really fix #7172, but this is an appropriate workaround. [Thomas: change license to GPLv3+, as mentionned in the project's README file.] Signed-off-by: "Yann E. MORIN" Cc: Mike Zick Reviewed-by: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- package/patchelf/Config.in.host | 7 +++++++ package/patchelf/patchelf.mk | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 package/patchelf/Config.in.host create mode 100644 package/patchelf/patchelf.mk (limited to 'package/patchelf') diff --git a/package/patchelf/Config.in.host b/package/patchelf/Config.in.host new file mode 100644 index 0000000000..d1c8375704 --- /dev/null +++ b/package/patchelf/Config.in.host @@ -0,0 +1,7 @@ +config BR2_PACKAGE_HOST_PATCHELF + bool "host patchelf" + help + PatchELF is a small utility to modify the dynamic linker + and RPATH of ELF executables. + + http://nixos.org/patchelf.html diff --git a/package/patchelf/patchelf.mk b/package/patchelf/patchelf.mk new file mode 100644 index 0000000000..b6b9e05e2e --- /dev/null +++ b/package/patchelf/patchelf.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# patchelf +# +################################################################################ + +PATCHELF_VERSION = 0.8 +PATCHELF_SITE = http://releases.nixos.org/patchelf/patchelf-0.8/ +PATCHELF_LICENSE = GPLv3+ +PATCHELF_LICENSE_FILES = COPYING + +$(eval $(host-autotools-package)) -- cgit v1.2.1