summaryrefslogtreecommitdiff
path: root/debian/patches/gdc-cross-biarch.diff
blob: 24dd5bc7c7de7c734dfbeaf17a9a25ee2293a5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# DP: Fix the location of target's libs in cross-build for biarch

--- a/src/config-ml.in
+++ b/src/config-ml.in
@@ -891,6 +915,8 @@
 	  case $arg in
 	  -[BIL]"${ML_POPDIR}"/*)
 	    GDC_="${GDC_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
+	  -B*/lib/)
+	    GDC_="${GDC_}"`echo "X${arg}" | sed -n "$FILTER_"`' ' ;;
 	  "${ML_POPDIR}"/*)
 	    GDC_="${GDC_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
 	  *)