]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Set a flag for the PGI C++ compiler that allows it to compile all but one file in...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Jul 2012 10:12:45 +0000 (10:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Jul 2012 10:12:45 +0000 (10:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@25665 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index ecb001446e50eb29de7a47fcf5d19234c60d8edb..68b2e81386a9b5d1c81492e30766a28f68a581e1 100644 (file)
@@ -957,6 +957,12 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
          CXXFLAGSG="$CXXFLAGSG -DDEBUG -g --display_error_number --diag_suppress 68 --diag_suppress 111 --diag_suppress 128 --diag_suppress 155 --diag_suppress 177 --diag_suppress 175 --diag_suppress 185 --diag_suppress 236 --diag_suppress 284"
           CXXFLAGSO="$CXXFLAGSO -fast -O2 --display_error_number --diag_suppress 68 --diag_suppress 111 --diag_suppress 128 --diag_suppress 155 --diag_suppress 177 --diag_suppress 175 --diag_suppress 185 --diag_suppress 236 --diag_suppress 284"
           CXXFLAGSPIC="-Kpic"
+
+         dnl pgCC can't (as of writing this, with version 12.5 in mid-2012) compile a part of BOOST.
+         dnl Fortunately, BOOST provides a workaround by setting a specific preprocessor
+         dnl symbol that can be set. Do so.
+         CXXFLAGSG="$CXXFLAGSG -DBOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE"
+         CXXFLAGSO="$CXXFLAGSO -DBOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE"
           ;;
 
       kai_cc)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.