[Buildroot] [PATCH v5 3/5] Makefile: add TARGET_SANITIZE_RPATH_HOOK to TARGET_FINALIZE_HOOKS

Baruch Siach baruch at tkos.co.il
Tue Jul 14 05:37:58 UTC 2015


Hi Samuel,

On Mon, Jul 13, 2015 at 11:55:09PM +0200, Samuel Martin wrote:
> This patch introduces the TARGET_SANITIZE_RPATH_HOOK hook fixing the ELF
> files' RPATH of the TARGET_DIR (excluding the sysroot).

Are you sure sysroot is excluded?

> After running this hook, the RPATH from any target ELF files won't
> contain any occurence of the sysroot or some build locations.
> 
> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>

Tested-by: Baruch Siach <baruch at tkos.co.il>

[ Build test only: verified that /sbin/ebtables preserves its RPATH 
  (/lib/ebtables), and that /usr/sbin/visudo also preserves its target RPATH 
  (/usr/libexec/sudo), while dropping the staging part ($(@D)/lib/util/.libs) 
  ]

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