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 <mo...@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 @@ -200,7 +200,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 -- 2.40.1