From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Date: Fri, 3 Mar 2017 17:39:42 +0100 Subject: [Buildroot] [RFC PATCH 2/9] support/scripts: add fix-rpath script to sanitize the rpath In-Reply-To: <20170303154853.4eb15819@free-electrons.com> References: <1488550733-3956-1-git-send-email-wg@grandegger.com> <1488550733-3956-3-git-send-email-wg@grandegger.com> <20170303154853.4eb15819@free-electrons.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, Am 03.03.2017 um 15:48 schrieb Thomas Petazzoni: > Hello, > > On Fri, 3 Mar 2017 15:18:46 +0100, Wolfgang Grandegger wrote: >> From: Samuel Martin >> >> This commit introduces a fix-rpath script able to scan a tree, >> detect ELF files, check their RPATH and fix it in a proper way. >> The RPATH fixup is done by the patchelf utility using the option >> "--make-rpath-relative". >> >> Signed-off-by: Samuel Martin >> Signed-off-by: Wolfgang Grandegger >> --- >> support/scripts/fix-rpath | 106 ++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 106 insertions(+) >> create mode 100755 support/scripts/fix-rpath > > Now that patchelf is much smarter, I am wondering if we still really > need a utility script just to call patchelf. Have you tried bringing > this logic into the make logic? Well, I think three magic "find" oneliners could do the job. I will try and see. Wolfgang.