]> https://gitweb.dealii.org/ - dealii.git/commitdiff
For --disable-shared add -static to LDFLAGS.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 26 Aug 2005 12:29:48 +0000 (12:29 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 26 Aug 2005 12:29:48 +0000 (12:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@11335 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure
deal.II/configure.in

index 87a2320ba26a12044fa784b84bff3d3e9df53b94..f5c511006426c8533f197ba41b824784396248f0 100755 (executable)
@@ -8904,6 +8904,8 @@ if test "x$enableshared" = "xyes" ; then
   CXXFLAGSO="$CXXFLAGSO $CXXFLAGSPIC"
   F77FLAGSG="$F77FLAGSG $F77FLAGSPIC"
   F77FLAGSO="$F77FLAGSO $F77FLAGSPIC"
+else
+  LDFLAGS="$LDFLAGS -static"
 fi
 
 
index 090d9cf3f7f47d70f374e208a2192f6e94d22037..42244f08aaeaf40e5335cc313a4fea3c324de6e8 100644 (file)
@@ -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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.