From bf2c2b26c68c36cb51624808bc5948e6afaaa4d6 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 25 Sep 2019 20:44:13 +0200 Subject: travis/install.sh: add a way of detecting problematic use of CS identifier for Solaris compat --- travis/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/travis/install.sh b/travis/install.sh index 0eaff801..c41dc014 100755 --- a/travis/install.sh +++ b/travis/install.sh @@ -31,6 +31,9 @@ TAR_DIRECTORY=`basename $TAR_FILENAME .tar.gz` tar xvzf $TAR_FILENAME cd $TAR_DIRECTORY +# There's a nasty #define CS in a Solaris system header. Avoid being caught about that again +CXXFLAGS="-DCS=do_not_use_CS_for_solaris_compat $CXXFLAGS" + # autoconf build from generated tarball mkdir build_autoconf cd build_autoconf -- cgit v1.2.3