Files
MX_Pmodule/Compiler/hdf5_serial/build
Hans-Christian Stadler Kleeb 04904c33c3 Adapt to PGI compilers
- pgrepro doesn't pass preprocessor tests
- pgc++ doesn't understand -pthread switch given to it by libtool
2017-09-14 13:05:59 +02:00

22 lines
404 B
Plaintext
Executable File

#!/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 \
--enable-cxx \
--enable-unsupported \
--enable-threadsafe \
--with-pic \
|| exit 1
}
pbuild::add_to_group 'Compiler'
pbuild::make_all