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:05 +0000 |
commit | 04609cc2cf818d6b24f6c41a2fc6018d83ea0fdc (patch) | |
tree | e110c38438de11b1edf60a27f2dc8df32313cd35 /configure | |
parent | 26baf39e92fe66297634edd5aa4dd2520405db40 (diff) | |
download | s6-networking-04609cc2cf818d6b24f6c41a2fc6018d83ea0fdc.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
@@ -209,7 +209,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 |