From 796b1452c484b334c3f71fee5f71adb875cef752 Mon Sep 17 00:00:00 2001 From: young Date: Fri, 17 Sep 2010 13:56:43 +0000 Subject: [PATCH] Patch to explicitly link to gfortran on weird Linux systems like OpenSuse git-svn-id: https://svn.dealii.org/trunk@22014 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/configure.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/deal.II/configure.in b/deal.II/configure.in index e68fcaca8e..5a1d5208b2 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -499,8 +499,12 @@ if test "x$with_trilinos" != "x" -a "x$with_trilinos" != "xno" ; then fi fi - - +dnl Strangely some Linux boxes (noteably OpenSuse) need to +dnl *explicitly* link with gfortran libraries. This is definately +dnl needed for ARPACk interfaces to work correctly; so we do that here: +if test "x$with_arpack" != "x" -a "x$with_arpack" != "xno" ; then + LDFLAGS="-lgfortran $LDFLAGS" +fi dnl ------------------------------------------------------------- @@ -607,12 +611,13 @@ dnl ------------------------------------------------------------- AC_MSG_RESULT() AC_MSG_RESULT(---------------- checking compiler flags --------------------) -dnl Possibly add some flags is optimizations are requested +dnl Possibly add some flags if optimizations are requested DEAL_II_CHECK_CPU_OPTIMIZATIONS dnl Last check: test whether CXXFLAGS and F77FLAGS are ok DEAL_II_CHECK_CXXFLAGS_CONSISTENCY DEAL_II_CHECK_F77FLAGS_CONSISTENCY +DEAL_II_CHECK_PETSC_MPI_CONSISTENCY -- 2.39.5