[Dune] [Dune-Commit] dune-grid r5268 - trunk/grid/test

Jö Fahlke jorrit at jorrit.de
Sat Jun 20 19:01:24 CEST 2009


Am Sat, 20. Jun 2009, 18:36:11 +0200 schrieb mnolte at dune-project.org:
[...]
> Modified: trunk/grid/test/Makefile.am
> ===================================================================
> --- trunk/grid/test/Makefile.am	2009-06-20 16:35:16 UTC (rev 5267)
> +++ trunk/grid/test/Makefile.am	2009-06-20 16:36:11 UTC (rev 5268)
[...]
>  # this implicitly checks the autoconf-test as well...
>  test_alberta_SOURCES = test-alberta.cc
> -test_alberta_CXXFLAGS = $(ALBERTA_CPPFLAGS) $(AM_CPPFLAGS) -DGRIDDIM=$(GRIDDIM)
> -test_alberta_LDADD = $(LOCAL_LIBS) $(ALBERTA_LDFLAGS) $(ALBERTA_LIBS)
> +test_alberta_CPPFLAGS = $(AM_CPPFLAGS) $(ALBERTA_CPPFLAGS) -DGRIDDIM=$(GRIDDIM)
> +test_alberta_LDFLAGS = $(AM_LDFLAGS) $(ALBERTA_LDFLAGS)
> +test_alberta_LDADD = $(LOCAL_LIBS) $(ALBERTA_LIBS)
Actually, this is wrong.  On my system I have for the Alberta-Stuff:
  ALBERTA_LDFLAGS = -L/home/joe/src/dune/alberta-3.0-rc6-inst/lib
  ALBERTA_LIBS = -lalberta_$(ALBERTA_DIM)d -lalberta_util
besides the local Alberta 3.0 installation I have a system-wide Alberta 2.0
installation.  If $(LOCAL_LIBS) contains -L/usr/lib, the linker will try to
links against /usr/lib/libalberta_2d.so.  This will happen for instance if
$(LOCAL_LIBS) contains $(SUPERLU_LIBS), which is what happened to me.

That is why I just filed Flyspry#566.  Of course my point there is that
<lib>_LDFLAGS should not contain any -L flags, but they should be included in
<lib>_LIBS.

Jö.

-- 
Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das
nennen sie ihren Standpunkt.
-- A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20090620/cb226b25/attachment.sig>


More information about the Dune mailing list