termux-packages/packages/apache2/build-instdso.sh.patch

16 lines
424 B
Diff
Raw Normal View History

2021-06-22 05:18:15 +02:00
--- ./build/instdso.sh 2011-03-05 00:28:38.000000000 +0530
+++ ./build/instdso.sh.mod 2021-06-22 08:37:42.026266930 +0530
2019-03-18 00:51:48 +01:00
@@ -59,6 +59,12 @@
esac
CMD="$SH_LIBTOOL --mode=install $INSTALL_CMD $DSOARCHIVE $TARGETDIR/"
+# Prefixing with bash below simplifies cross compiling setup where
+# $SH_LIBTOOL may have wrong shebang:
+case "$SH_LIBTOOL" in
+ bash*) ;;
+ *) CMD="bash $CMD" ;;
+esac
echo $CMD
$CMD || exit $?