summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMobin <mobin@mobintestserver.ir>2023-07-08 12:56:43 +0330
committerLaurent Bercot <ska-skaware@skarnet.org>2023-07-10 22:40:47 +0000
commit9e7875af1a4a74f2be530598ec431bee94441bdc (patch)
tree4b6f30a191ad55df17ae3d0ab7f389aea4dabd09 /configure
parent30ee76d489393d3b1ba5fd81c0c998ff1e56da8e (diff)
downloadskalibs-9e7875af1a4a74f2be530598ec431bee94441bdc.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-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 1e0311f..c0ba5ac 100755
--- a/configure
+++ b/configure
@@ -415,7 +415,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