From: Ralf Hartmann Date: Fri, 26 Aug 2005 12:29:48 +0000 (+0000) Subject: For --disable-shared add -static to LDFLAGS. X-Git-Tag: v8.0.0~13252 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e558647ddc0b9a9bce78babc50272d58df62fe24;p=dealii.git For --disable-shared add -static to LDFLAGS. git-svn-id: https://svn.dealii.org/trunk@11335 0785d39b-7218-0410-832d-ea1e28bc413d --- 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)