]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove -static from the linker flags when using static libraries. The svn log doesn...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 29 Oct 2008 17:15:48 +0000 (17:15 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 29 Oct 2008 17:15:48 +0000 (17:15 +0000)
The underlying reason for the change is that with the proliferation of libraries we link with there are cases where a system library is only available as a shared lib. The current case was that with MPI the compiler passes -lmpi_cxx to the linker but mpi_cxx only exists as libmpi_cxx.so and consequently the link fails. This is unnecessary since all we wanted to ensure is that the *deal.II* libraries are used in their static form.

git-svn-id: https://svn.dealii.org/trunk@17397 0785d39b-7218-0410-832d-ea1e28bc413d

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

index cdd905b623da31317de09bd02256c13071277789..c2d98035a81e0753eb2c84339529f6e39ae1ad39 100755 (executable)
@@ -11618,14 +11618,6 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   LDFLAGS=$OLD_LDFLAGS
 
 
-else
-  LDFLAGSSTATIC="-static"
-  case "$target" in
-    *-apple-darwin* )
-       LDFLAGSSTATIC=""
-          ;;
-  esac
-  LDFLAGS="$LDFLAGS $LDFLAGSSTATIC"
 fi
 
 
index 286b0d9fca0f5d1c1fa10903a2a1e23efb898183..95511945e4bbd4171f61f430045b259a0fa7610d 100644 (file)
@@ -320,17 +320,6 @@ if test "x$enableshared" = "xyes" ; then
 
   dnl See if we can use -Wl,-soname,... for linking
   DEAL_II_CHECK_LINK_SONAME
-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_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]).
-  LDFLAGSSTATIC="-static"
-  case "$target" in
-    *-apple-darwin* )
-       LDFLAGSSTATIC=""
-          ;;
-  esac
-  LDFLAGS="$LDFLAGS $LDFLAGSSTATIC"
 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.