diff options
author | Mobin <mobin@mobintestserver.ir> | 2023-07-08 12:56:43 +0330 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2023-07-10 22:43:08 +0000 |
commit | 5da79ff8cbf3c0185d5f5d7f044915a8e0427ba0 (patch) | |
tree | 269174448378c44064b29c8f81b57f5cc9aaf61b | |
parent | d4f6a54d7b47ee2b66d7f9425763ca58550d1ab7 (diff) | |
download | s6-frontend-5da79ff8cbf3c0185d5f5d7f044915a8e0427ba0.tar.gz s6-frontend-5da79ff8cbf3c0185d5f5d7f044915a8e0427ba0.tar.xz s6-frontend-5da79ff8cbf3c0185d5f5d7f044915a8e0427ba0.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-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure index 815df16..2e5327a 100755 --- a/configure +++ b/configure @@ -208,7 +208,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 |