From ff8e44d38609e06ff0e61fd460d259b9e4cdf2cb Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 11 Nov 2024 03:26:54 +0100 Subject: [PATCH] Add -g to compiler flags --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 06ae3de..9a7849e 100644 --- a/configure.ac +++ b/configure.ac @@ -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`