summaryrefslogtreecommitdiff
path: root/lang/erlang/files/patch-configure
diff options
context:
space:
mode:
Diffstat (limited to 'lang/erlang/files/patch-configure')
-rw-r--r--lang/erlang/files/patch-configure40
1 files changed, 40 insertions, 0 deletions
diff --git a/lang/erlang/files/patch-configure b/lang/erlang/files/patch-configure
new file mode 100644
index 000000000000..9713b597b9dc
--- /dev/null
+++ b/lang/erlang/files/patch-configure
@@ -0,0 +1,40 @@
+--- configure.orig 2021-09-13 14:43:59 UTC
++++ configure
+@@ -55,7 +55,7 @@ skip_applications=
+ while test $# != 0; do
+ case $1 in
+ -srcdir=* | --srcdir=*)
+- user_srcdir=`expr "$1" : '[^=]*=\(.*\)'`
++ user_srcdir=`expr -- "$1" : '[^=]*=\(.*\)'`
+ if test "$ERL_TOP" != ""; then
+ echo "WARNING: Overriding ERL_TOP with $user_srcdir" 1>&2
+ echo "" 1>&2
+@@ -95,7 +95,7 @@ while test $# != 0; do
+ echo "" 1>&2
+ ;;
+ -cache-file=* | --cache-file=* )
+- static_cache=`expr "$1" : '[^=]*=\(.*\)'`
++ static_cache=`expr -- "$1" : '[^=]*=\(.*\)'`
+ if test "$static_cache" != "/dev/null"; then
+ echo "WARNING: Only using config cache file '$static_cache' as static cache" 1>&2
+ echo "" 1>&2
+@@ -140,8 +140,8 @@ while test $# != 0; do
+ pie_ldflags="-no-pie"
+ ;;
+ CFLAGS=* | LDFLAGS=*)
+- flgs_var=`expr "$1" : '\([^=]*\)=.*'`
+- flgs_val=`expr "$1" : '[^=]*=\(.*\)'`
++ flgs_var=`expr -- "$1" : '\([^=]*\)=.*'`
++ flgs_val=`expr -- "$1" : '[^=]*=\(.*\)'`
+ eval $flgs_var=\$flgs_val
+ ;;
+ --help=r* | -help=r*)
+@@ -151,7 +151,7 @@ while test $# != 0; do
+ *)
+ case $1 in
+ --without-*)
+- skip_app=`expr "$1" : '--without-\(.*\)'`
++ skip_app=`expr -- "$1" : '--without-\(.*\)'`
+ if [ "$skip_app" = "stdlib" ] ||
+ [ "$skip_app" = "kernel" ] ||
+ [ "$skip_app" = "sasl" ] ||