0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-19 10:54:32 +00:00
Files
packages/lang/perl/patches/101-cross-compile-ldlibpth.patch
Matthias Schiffer 6766939892 perl: do not set LD_LIBRARY_PATH for cross compile
We don't want to set LD_LIBRARY_PATH to a directory filled with target
libraries when running a host perl. When the host and target
architecture are the same, some libraries will be loaded from this
path, resulting in the build to break because of glibc/musl mismatch.

Reported-by: John Audia <therealgraysky@proton.me>
Fixes: e7b5a35e5c ("perl: drop 110-always_use_miniperl.patch")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2025-05-16 10:01:27 +02:00

16 lines
183 B
Diff

--- a/Makefile.SH
+++ b/Makefile.SH
@@ -174,6 +174,12 @@ EOT
;;
esac
+ case "$usecrosscompile$perl" in
+ define?*)
+ ldlibpth=''
+ ;;
+ esac
+
;;
*) pldlflags=''