From 21cc434a20cdf1e702e88df22eed4e90a0b18240 Mon Sep 17 00:00:00 2001 From: hartmann Date: Fri, 26 Aug 2005 12:29:48 +0000 Subject: [PATCH] For --disable-shared add -static to LDFLAGS. git-svn-id: https://svn.dealii.org/trunk@11335 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/configure | 2 ++ deal.II/configure.in | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/deal.II/configure b/deal.II/configure index 87a2320ba2..f5c5110064 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -8904,6 +8904,8 @@ if test "x$enableshared" = "xyes" ; then CXXFLAGSO="$CXXFLAGSO $CXXFLAGSPIC" F77FLAGSG="$F77FLAGSG $F77FLAGSPIC" F77FLAGSO="$F77FLAGSO $F77FLAGSPIC" +else + LDFLAGS="$LDFLAGS -static" fi diff --git a/deal.II/configure.in b/deal.II/configure.in index 090d9cf3f7..42244f08aa 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -294,6 +294,11 @@ if test "x$enableshared" = "xyes" ; then CXXFLAGSO="$CXXFLAGSO $CXXFLAGSPIC" F77FLAGSG="$F77FLAGSG $F77FLAGSPIC" F77FLAGSO="$F77FLAGSO $F77FLAGSPIC" +else +dnl The gcc compiler needs -static for static linking. For the case +dnl other compilers do not like this flag we should introduce a +dnl LDFLAGSSTATIC variable and check -static through AC_TRY_LINK. + LDFLAGS="$LDFLAGS -static" fi AC_SUBST(enableshared) -- 2.39.5