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:42:59 +0000 |
commit | 006d49f1e0250b1f37afb8849fcac952ae341fc5 (patch) | |
tree | 12c8e4571b5f8abe372ed0941d5893d5ff95800e /configure | |
parent | abde4759cd42e895ff1b1f2845921a0ab7b15008 (diff) | |
download | nsss-006d49f1e0250b1f37afb8849fcac952ae341fc5.tar.xz |
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
@@ -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 |