aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zangband/fix-bad-substitution.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/zangband/fix-bad-substitution.patch')
-rw-r--r--testing/zangband/fix-bad-substitution.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/zangband/fix-bad-substitution.patch b/testing/zangband/fix-bad-substitution.patch
new file mode 100644
index 0000000000..b344940b34
--- /dev/null
+++ b/testing/zangband/fix-bad-substitution.patch
@@ -0,0 +1,12 @@
+#The form ${!FLAG} throws bad substitution errors, converting to a posix complient form fixs it, and allows second pass generation to work
+--- a/configure.in
++++ b/configure.in
+@@ -249,7 +249,7 @@
+ else
+ eval $FLAG=no
+ fi])
+-if test ${!FLAG} = yes ; then
++if test [ "$FLAG" != yes ] ; then
+ CFLAGS="$1 $CFLAGS"
+ fi
+ ])