summaryrefslogtreecommitdiff
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:42:59 +0000
commit006d49f1e0250b1f37afb8849fcac952ae341fc5 (patch)
tree12c8e4571b5f8abe372ed0941d5893d5ff95800e
parentabde4759cd42e895ff1b1f2845921a0ab7b15008 (diff)
downloadnsss-006d49f1e0250b1f37afb8849fcac952ae341fc5.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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 3879ca9..6b1354e 100755
--- a/configure
+++ b/configure
@@ -200,7 +200,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