Skip to content
Snippets Groups Projects
Commit 61315333 authored by Markus Blatt's avatar Markus Blatt
Browse files

Order matters when providing libs. All symbols used by a library must

have been already seen by the linker. As DUNE_LIBS (e.g. dune-grid)
use symbols from other libraries already in ALL_PKG_LIBS (e.g. those of the
alugrid library), they should be appended to them.

On the other hand libtool removes duplicate libraries provided when
linking from, such that only the first occurence persits. Resulting
e.g. in libalugrid coming after libgrid.

This never caused problems because libtool added dependencies known to
it from the .la file automatically. But it does when using dune core
packages built with cmake (these lack .la files).

All tests of the core module pass (except one in virtual
refinement). Additionally dune-grid-howto build with ug and alugrid enabled.

[[Imported from SVN: r6949]]
parent e63fde54
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ dnl do not use LT_INIT since we want to be compatible with libtool 1.5
AC_REQUIRE([DUNE_CHECK_MOD_DEPENDENCIES])
# convenience-variables if every found package should be used
AC_SUBST([ALL_PKG_LIBS], "$ALL_PKG_LIBS $DUNE_PKG_LIBS $LIBS")
AC_SUBST([ALL_PKG_LIBS], "$DUNE_PKG_LIBS $ALL_PKG_LIBS $LIBS")
AC_SUBST([ALL_PKG_LDFLAGS], "$LDFLAGS $DUNE_PKG_LDFLAGS $ALL_PKG_LDFLAGS")
AC_SUBST([ALL_PKG_CPPFLAGS], "$CPPFLAGS $DUNE_PKG_CPPFLAGS $ALL_PKG_CPPFLAGS")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment