Adapt to PGI compilers

- pgrepro doesn't pass preprocessor tests
- pgc++ doesn't understand -pthread switch given to it by libtool
This commit is contained in:
2017-09-14 13:05:59 +02:00
parent 7a383a067f
commit 04904c33c3

View File

@@ -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 \