[Buildroot] [PATCH v4 3/4] Makefile: add TARGET_CLEAR_RPATH_HOOK to TARGET_FINALIZE_HOOKS

Baruch Siach baruch at tkos.co.il
Mon Jul 13 13:44:21 UTC 2015


Hi Samuel,

On Mon, Jul 13, 2015 at 12:54:29PM +0200, Samuel Martin wrote:
> This patch introduces the TARGET_CLEAR_RPATH_HOOK hook fixing the ELF
> files' RPATH of the host tree (excluding the sysroot).
> 
> After running this hook, the RPATH from any target ELF files is empty.

There are legitimate uses for RPATH. The ebtable package sets the ebtables 
executable RPATH to /lib/ebtables to load its libeb*.so extensions. The sudo 
package add RPATH to /usr/libexec/sudo in visudo. There may be more. How 
should we handle these cases? Maybe add a per-package, per-executable RPATH 
setting?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list