[Dune] [Dune-Commit] dune-grid r6189 - in trunk: dune/grid/albertagrid dune/grid/albertagrid/test m4

Christian Engwer christi at uni-hd.de
Tue Jan 19 16:52:09 CET 2010


Hi Joe,

> Log:
> Pass the linker path when linking alberta libraries.  Otherwise the
> albertagrid_?d libraries will be linked against an alberta installed in
> /usr/lib instead of the one wiven with --with-alberta.

> Modified: trunk/dune/grid/albertagrid/Makefile.am
> ===================================================================
> --- trunk/dune/grid/albertagrid/Makefile.am	2010-01-19 14:47:27 UTC (rev 6188)
> +++ trunk/dune/grid/albertagrid/Makefile.am	2010-01-19 15:33:37 UTC (rev 6189)
> @@ -8,15 +8,15 @@
>  
>  libalbertagrid_1d_la_SOURCES = $(libalbertagrid_sources)
>  libalbertagrid_1d_la_CPPFLAGS = $(libalbertagrid_cppflags) -DALBERTA_DIM=1
> -libalbertagrid_1d_la_LIBADD = $(DUNE_COMMON_LIBS) $(ALBERTA_BASE_LIBS) -lalberta_1d
> +libalbertagrid_1d_la_LIBADD = $(DUNE_COMMON_LIBS) -L$(ALBERTAROOT)/lib $(ALBERTA_BASE_LIBS) -lalberta_1d

shouldn't we add the linker option to LDFLAGS? How should the user
that he still as to add -L$(ALBERTAROOT)/lib?

And second question, does this still work with an instaled alberta?

Christian




More information about the Dune mailing list