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:07 +0000 |
commit | da1ab0520683fc6d6e56421a8a265a5560c5b479 (patch) | |
tree | a31e01164281e2a3e27da6cce7c3dee77f5641eb | |
parent | a7329c0757668fc1dfa41566dca3ce4cc2920316 (diff) | |
download | dnsfunnel-da1ab0520683fc6d6e56421a8a265a5560c5b479.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>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -191,7 +191,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 |