[PATCH] configure: Catch all of variable values

From: Mobin <mobin_at_mobintestserver.ir>
Date: Sun, 9 Jul 2023 10:40:15 +0330

If variables have multiple values (CFLAGS="-std=c11 -fPIE" for example), eval
drops most values (except first one) from it. This commit fixes this issue.

Signed-off-by: Mobin "Hojjat" Aydinfar <mobin_at_mobintestserver.ir>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 6a53371..8c2dc29 100755
--- a/configure
+++ b/configure
_at__at_ -200,7 +200,7 _at__at_ for arg ; do
     --host=*|--target=*) target=${arg#*=} ;;
     --build=*) build=${arg#*=} ;;
     -* ) echo "$0: unknown option $arg" ;;
-    *=*) eval "$arg" ;;
+    *=*) eval "${arg%%=*}=\${arg#*=}" ;;
     *) target=$arg ;;
   esac
 done
-- 
2.40.1
Received on Sun Jul 09 2023 - 09:10:15 CEST

This archive was generated by hypermail 2.4.0 : Sun Jul 09 2023 - 09:11:03 CEST