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:
parent
8428a0ab0f
commit
e8dffaac15
25
configure.ac
25
configure.ac
@ -66,6 +66,31 @@ AC_PROG_INSTALL
|
|||||||
AC_PROG_LN_S
|
AC_PROG_LN_S
|
||||||
AC_PROG_GREP
|
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
|
## Libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user