Skip to content

Commit

Permalink
perl: patch out build paths from native binaries
Browse files Browse the repository at this point in the history
(From OE-Core rev: 4ba95766018ee5ecb48585d3748756b855892623)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
kanavin authored and rpurdie committed May 4, 2023
1 parent 926cba5 commit 42e9604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta/recipes-devtools/perl/perl_5.36.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ do_configure:class-native() {
-Ui_xlocale \
-Alddlflags=' ${LDFLAGS}' \
${PACKAGECONFIG_CONFARGS}

# This prevents leakage of build paths into perl-native binaries, which
# causes non-deterministic troubles when those paths no longer exist or aren't accessible.
sed -i -e "s,${STAGING_LIBDIR},/completelyboguspath,g" config.h
}

do_configure:append() {
Expand Down

0 comments on commit 42e9604

Please sign in to comment.