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:45:58 +0000 |
commit | eab9616aa2c9bc001a69b8a35b69a4abf58b0946 (patch) | |
tree | 3d05a169ef6a224b318c5cd9b5e5be204f2e619a | |
parent | 63fbd3d87258a22cc1fefd46018b6e6e6cc99767 (diff) | |
download | bcnm-eab9616aa2c9bc001a69b8a35b69a4abf58b0946.tar.gz bcnm-eab9616aa2c9bc001a69b8a35b69a4abf58b0946.tar.xz bcnm-eab9616aa2c9bc001a69b8a35b69a4abf58b0946.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>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure index b8d05df..f9f4146 100755 --- a/configure +++ b/configure @@ -195,7 +195,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 |