1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 12:23:54 +01:00

Manually append -fPIC flag

This solves issues with some compilers, e.g. Intel ones, which fail to resolve some linking symbols when configured in a simple manner (./configure CC=icc FC=ifort)
This commit is contained in:
q-posev 2022-07-12 17:07:38 +02:00
parent 8428a0ab0f
commit e8dffaac15

View File

@ -66,6 +66,31 @@ AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_GREP
# Specific options required with some compilers
case $FC in
*gfortran*)
FCFLAGS="$FCFLAGS -fPIC"
;;
*flang*)
FCFLAGS="$FCFLAGS -fPIC"
;;
*ifort*)
FCFLAGS="$FCFLAGS -fPIC"
;;
esac
case $CC in
*gcc*)
CFLAGS="$CFLAGS -fPIC"
;;
*clang*)
CFLAGS="$CFLAGS -fPIC"
;;
*icc*)
CFLAGS="$CFLAGS -fPIC"
;;
esac
## ---------
## Libraries