perl: patch out build paths from native binaries

(From OE-Core rev: 9ea0f850928b3e7d7a2eb280b8b3ed0c9f977cd6)

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>
This commit is contained in:
Alexander Kanavin
2023-04-27 09:35:28 +02:00
committed by Richard Purdie
parent 3f89c3ffdc
commit 2e84bb1971

View File

@@ -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() {