about summary refs log tree commit diff
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:01 +0000
commit9dcdfcefdeca2d8795cc0b7946d2efa4b7025975 (patch)
tree5ed518a74ce0006a543edbd783ced5fde1b2f2b2 /configure
parent4c8dc8ab046864c370ce1aadd29403fd6c78097f (diff)
downloads6-9dcdfcefdeca2d8795cc0b7946d2efa4b7025975.tar.gz
s6-9dcdfcefdeca2d8795cc0b7946d2efa4b7025975.tar.xz
s6-9dcdfcefdeca2d8795cc0b7946d2efa4b7025975.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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 6a53371..8c2dc29 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