summary refs log tree commit diff
diff options
context:
space:
mode:
authorMobin <mobin@mobintestserver.ir>2023-07-08 12:56:43 +0330
committerLaurent Bercot <ska-skaware@skarnet.org>2023-07-10 22:43:00 +0000
commit1b68dca6beeb71d55522289f82541603cb340310 (patch)
tree0a479c807c4dd2b1719eddd07f4fd02ae97060ae
parent7d790daa90f49e153251d0f41bcb208d8bea588c (diff)
downloadexecline-1b68dca6beeb71d55522289f82541603cb340310.tar.gz
execline-1b68dca6beeb71d55522289f82541603cb340310.tar.xz
execline-1b68dca6beeb71d55522289f82541603cb340310.zip
configure: Catch all of variable values
If variables have multiple values (such as CFLAGS="-std=c11 -fPIE"), eval
drops most values (except first one) from it. This commit fixes this issue.

Signed-off-by: Mobin "Hojjat" Aydinfar <mobin@mobintestserver.ir>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 9cf2a25..9d368ed 100755
--- a/configure
+++ b/configure
@@ -209,7 +209,7 @@ for arg ; do
     --host=*|--target=*) target=${arg#*=} ;;
     --build=*) build=${arg#*=} ;;
     -* ) echo "$0: unknown option $arg" ;;
-    *=*) eval "$arg" ;;
+    *=*) eval "${arg%%=*}=\${arg#*=}" ;;
     *) target=$arg ;;
   esac
 done