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:43:02 +0000
commitfbd268941344f5413fa9dd462c6d3cbae7b85941 (patch)
tree70146389a7026ca8412f32aa37f606dc59849ec0 /configure
parented14312d330dbd7afb668d0238eaca64f057b267 (diff)
downloads6-rc-fbd268941344f5413fa9dd462c6d3cbae7b85941.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 2fa54d6..66d4aac 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