From 04904c33c3d9c88671ffe209fbe7818a5da0b539 Mon Sep 17 00:00:00 2001 From: Hans-Christian Stadler Kleeb Date: Thu, 14 Sep 2017 13:05:59 +0200 Subject: [PATCH] Adapt to PGI compilers - pgrepro doesn't pass preprocessor tests - pgc++ doesn't understand -pthread switch given to it by libtool --- Compiler/hdf5_serial/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Compiler/hdf5_serial/build b/Compiler/hdf5_serial/build index 2c1f42c..443c17f 100755 --- a/Compiler/hdf5_serial/build +++ b/Compiler/hdf5_serial/build @@ -1,6 +1,11 @@ #!/usr/bin/env modbuild pbuild::configure() { + test "$(basename "$CPP")" = "pgprepro" && { + CPP=cpp + CXX=g++ + echo "INFO: substituted pgprepro with cpp, and pgc++ with g++!" + } "${MODULE_SRCDIR}"/configure \ --prefix="${PREFIX}" \ --enable-shared \