mirror of
https://github.com/openwrt/packages.git
synced 2025-07-19 10:54:32 +00:00
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>
16 lines
183 B
Diff
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=''
|