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 | 065bafd5813754cff8590a0e50b2b624daf58adf (patch) | |
tree | b47ebc5fa13e54db95e14e7c9d01223070d60658 | |
parent | 2355126d25dbf57dd344558f5997c716b1a87c59 (diff) | |
download | skabus-065bafd5813754cff8590a0e50b2b624daf58adf.tar.gz skabus-065bafd5813754cff8590a0e50b2b624daf58adf.tar.xz skabus-065bafd5813754cff8590a0e50b2b624daf58adf.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 6846938..627b102 100755 --- a/configure +++ b/configure @@ -192,7 +192,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 |