1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2025-01-08 20:33:36 +01:00

Add -g to compiler flags

This commit is contained in:
Anthony Scemama 2024-11-11 03:26:54 +01:00
parent 9204ecb891
commit ff8e44d386

View File

@ -52,9 +52,9 @@ AS_IF([test "$ok" = "yes"],[
# Specific options required with some compilers
AS_CASE([$FC],
[*gfortran*], [FCFLAGS="$FCFLAGS -fPIC"],
[*flang*], [FCFLAGS="$FCFLAGS -fPIC"],
[*ifort*], [FCFLAGS="$FCFLAGS -fPIC"],
[*gfortran*], [FCFLAGS="$FCFLAGS -g -fPIC"],
[*flang*], [FCFLAGS="$FCFLAGS -g -fPIC"],
[*ifort*], [FCFLAGS="$FCFLAGS -g -fPIC"],
[])
])
@ -79,9 +79,9 @@ AC_PROG_LN_S
AC_PROG_GREP
AS_CASE([$CC],
[*gcc*], [CFLAGS="$CFLAGS -fPIC"],
[*clang*], [CFLAGS="$CFLAGS -fPIC"],
[*icc*], [CFLAGS="$CFLAGS -fPIC"],
[*gcc*], [CFLAGS="$CFLAGS -g -fPIC"],
[*clang*], [CFLAGS="$CFLAGS -g -fPIC"],
[*icc*], [CFLAGS="$CFLAGS -g -fPIC"],
[])
# Check if `cp -r -n` works, otherwise use `cp -r`