From d9d4432568d219886d97f5af6e92eb127a58d183 Mon Sep 17 00:00:00 2001 From: Mobin Date: Sat, 8 Jul 2023 12:56:43 +0330 Subject: 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 53399e3..4d35b57 100755 --- a/configure +++ b/configure @@ -192,7 +192,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 -- cgit 1.4.1