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:03 +0000 |
commit | 3d968c82db0ffd6edacda7632f7fd544039374d7 (patch) | |
tree | 7847a28ce58cba875e42adac59c715a4fa7ec67f /configure | |
parent | e245b83c0ae2fb6eb526d196a2bdce82ae2e81c7 (diff) | |
download | s6-portable-utils-3d968c82db0ffd6edacda7632f7fd544039374d7.tar.gz s6-portable-utils-3d968c82db0ffd6edacda7632f7fd544039374d7.tar.xz s6-portable-utils-3d968c82db0ffd6edacda7632f7fd544039374d7.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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure index 5835905..5a0e56d 100755 --- a/configure +++ b/configure @@ -196,7 +196,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 |