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
LDFLAGS=$OLD_LDFLAGS
-else
- LDFLAGSSTATIC="-static"
- case "$target" in
- *-apple-darwin* )
- LDFLAGSSTATIC=""
- ;;
- esac
- LDFLAGS="$LDFLAGS $LDFLAGSSTATIC"
fi
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