summaryrefslogtreecommitdiff
path: root/scripts/patches/0001-extra-lib-paths.diff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patches/0001-extra-lib-paths.diff')
-rw-r--r--scripts/patches/0001-extra-lib-paths.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/patches/0001-extra-lib-paths.diff b/scripts/patches/0001-extra-lib-paths.diff
new file mode 100644
index 000000000..2dfb49e4e
--- /dev/null
+++ b/scripts/patches/0001-extra-lib-paths.diff
@@ -0,0 +1,20 @@
+--- a 2021-10-09 20:59:28.977394444 -0500
++++ b 2021-10-09 21:00:09.470414858 -0500
+@@ -1363,7 +1363,7 @@
+ local rpaths=$(cat "$1")
+ shift
+ while [ $# -gt 0 ]; do
+- real_so_path "$1" /usr/lib /lib $rpaths || return 1
++ real_so_path "$1" /usr/lib /lib $(ldd /tmp/m32/host/bin/gcc | grep -oE '/.*\ ' | xargs -I {} dirname {} | sort | uniq) $rpaths || return 1
+ shift
+ done
+ return 0
+@@ -1396,7 +1396,7 @@
+ local apkroot=
+
+ case "$parch" in
+- $CBUILD_ARCH) ;;
++ $CBUILD_ARCH) apkroot="--root $CBUILDROOT" ;;
+ $CARCH | $CTARGET_ARCH) apkroot="--root $CBUILDROOT --arch $CTARGET_ARCH" ;;
+ esac
+