From a5a96aacade824429490a58fca0430190ff3c168 Mon Sep 17 00:00:00 2001 From: Michael Reichert Date: Thu, 23 Nov 2023 22:03:11 +0100 Subject: [PATCH] Fix configure script for variables read from mapnik-settings.env Custom build variables (e.g. CXX_STD or CXX) read from mapnik-settings.env have to be provided as command line arguments because SCons does not respect the environment variables. --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index b69b959ca..c2cabf48a 100755 --- a/configure +++ b/configure @@ -15,4 +15,6 @@ if [ -f mapnik-settings.env ]; then . ./mapnik-settings.env fi -$PYTHON scons/scons.py --implicit-deps-changed configure "$@" +VARS=( $(cat mapnik-settings.env) ) + +$PYTHON scons/scons.py --implicit-deps-changed configure ${VARS[*]} "$@"