summary refs log tree commit diff
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:00 +0000
commit978fb7b8c00440a6c843fc38b0ef6bf818c6de31 (patch)
treea49a799cd4d62fb4a38cd70e1c0f478e6bdb2217
parent57b5f9a340ed436f7b13e497e6858350aee4e7fe (diff)
downloadutmps-978fb7b8c00440a6c843fc38b0ef6bf818c6de31.tar.gz
utmps-978fb7b8c00440a6c843fc38b0ef6bf818c6de31.tar.xz
utmps-978fb7b8c00440a6c843fc38b0ef6bf818c6de31.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>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 2393bb2..9346a54 100755
--- a/configure
+++ b/configure
@@ -207,7 +207,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