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 | c23083abd578f9ea824abbee5f4f09933b9df8ee (patch) | |
| tree | d6e192cfea99092f46ab606484a99e10dfef0695 | |
| parent | 7934949532ac6bec4f810f74c806d2620ce37ff0 (diff) | |
| download | mdevd-c23083abd578f9ea824abbee5f4f09933b9df8ee.tar.gz | |
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
@@ -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 |
