From e703629b479b60cefcc5e04ad70e8cbcb483ce3d Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sat, 2 Mar 2013 23:17:03 -0500 Subject: [PATCH] add --cflags - to make things will break without out - we can remove at 3.x --- utils/mapnik-config/mapnik-config.template.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/mapnik-config/mapnik-config.template.sh b/utils/mapnik-config/mapnik-config.template.sh index 55c4d0af9..ef7f7a0ac 100755 --- a/utils/mapnik-config/mapnik-config.template.sh +++ b/utils/mapnik-config/mapnik-config.template.sh @@ -27,7 +27,8 @@ Known values for OPTION are: --libs print library linking information --dep-libs print library linking information for Mapnik dependencies --ldflags print library paths (-L) information - --cxxflags print pre-processor and compiler flags + --cxxflags print pre-processor and compiler flags + --cflags print pre-processor and compiler flags (same as cxxflags, for back-compatibility) --fonts print default fonts directory --input-plugins print default input plugins directory --json print all config options as json object @@ -93,6 +94,10 @@ while test $# -gt 0; do echo -I${CONFIG_MAPNIK_INCLUDE} -I${CONFIG_MAPNIK_AGG_INCLUDE} ${CONFIG_OTHER_INCLUDES} ;; + --cflags) + echo -I${CONFIG_MAPNIK_INCLUDE} -I${CONFIG_MAPNIK_AGG_INCLUDE} ${CONFIG_OTHER_INCLUDES} + ;; + --libs) echo -L${CONFIG_MAPNIK_LIB} -l${CONFIG_MAPNIK_LIBNAME} ;;