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:07 +0000
commitd9d4432568d219886d97f5af6e92eb127a58d183 (patch)
treeba76f2cc7f8584c7735238dbfc4c65b659007ffd
parent89da9d1a44aea4e12bcd9ee227bfa3580262243f (diff)
downloadpamela-d9d4432568d219886d97f5af6e92eb127a58d183.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 53399e3..4d35b57 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