core: sanitize RPATH in target tree before copying the overlay
We sanitize the RPATH of ELF files in the target tree to deal with stupid packages that don't correctly use --prefix/DESTDIR and that end up putting the full absolute build-time directory in the RPATH. We do it before copying the overlay and calling the post-build script. The user is completely responsible for what happens in the last two steps, and it should never be touched by us. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b972b108f4
commit
5f4ca51809
3
Makefile
3
Makefile
@ -709,6 +709,9 @@ endif
|
|||||||
echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \
|
echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \
|
||||||
) > $(TARGET_DIR)/etc/os-release
|
) > $(TARGET_DIR)/etc/os-release
|
||||||
|
|
||||||
|
@$(call MESSAGE,"Sanitizing RPATH in target tree")
|
||||||
|
$(TOPDIR)/support/scripts/fix-rpath target
|
||||||
|
|
||||||
@$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
|
@$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \
|
||||||
$(call MESSAGE,"Copying overlay $(d)"); \
|
$(call MESSAGE,"Copying overlay $(d)"); \
|
||||||
rsync -a --ignore-times --keep-dirlinks $(RSYNC_VCS_EXCLUSIONS) \
|
rsync -a --ignore-times --keep-dirlinks $(RSYNC_VCS_EXCLUSIONS) \
|
||||||
|
Loading…
Reference in New Issue
Block a user