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:03 +0000
commit82c05711204ee4a997499386167a5e6b0b1d8fa2 (patch)
tree758fa6c116805568c7c992436b6832363addc6c3
parentddfb27b5dd1db23d36800a1a8d8211c2aa1b65c1 (diff)
downloads6-linux-init-82c05711204ee4a997499386167a5e6b0b1d8fa2.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 47b57b8..c33f1c8 100755
--- a/configure
+++ b/configure
@@ -221,7 +221,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