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:43:05 +0000
commitbce22be61a55a29084c8c0416be942622d2d8f87 (patch)
tree661463882cd801d7487b22bd192ecd765a1323ec
parentcfe4051aaffd4ff5e7a1b55b023840042896dbd6 (diff)
downloads6-dns-bce22be61a55a29084c8c0416be942622d2d8f87.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 4c9874e..18db5bc 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