1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-22 20:36:01 +01:00

Add options for PGCC and PGF90 compilers

This commit is contained in:
Anthony Scemama 2022-10-13 10:30:56 +02:00
parent d6ddfda80a
commit 1c5713f2f6

View File

@ -259,11 +259,14 @@ AS_IF([test "$BLAS_LIBS" = "$LAPACK_LIBS"], [BLAS_LIBS=""])
AS_CASE([$FC],
[*ifort*], [FCFLAGS="$FCFLAGS -nofor-main"],
[*nvfortran*], [FCFLAGS="$FCFLAGS -fPIC -Mnomain"],
[*pgf90*], [FCFLAGS="$FCFLAGS -fPIC -Mnomain"],
[*pgf77*], [FCFLAGS="$FCFLAGS -fPIC -Mnomain"],
[])
AS_CASE([$CC],
[*gcc*], [CFLAGS="$CFLAGS -fPIC"],
[*nvc*], [CFLAGS="$CFLAGS -fPIC"],
[*pgcc*], [CFLAGS="$CFLAGS -fPIC"],
[])