[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 18:12:46 CET 2010


> > shouldn't we add the linker option to LDFLAGS? How should the user
> > that he still as to add -L$(ALBERTAROOT)/lib?
> 
> Citing the automake manual:
> ======================================================================
>    `PROG_LDADD' is inappropriate for passing program-specific linker
> flags (except for `-l', `-L', `-dlopen' and `-dlpreopen').  So, use the
> `PROG_LDFLAGS' variable for this purpose.
> ======================================================================
> 
> Same goes for _LIBADD, of course.  Essentially any linker option or parameter
> that specifies a library or object to link to has to go into LIBS, LDADD,
> *_LDADD, or *_LIBADD, while everything else has to go into *_LDFLAGS.
> 
> Part of the reason is that different program packages may contain libraries
> with the same name -- if the -L option for those packages is in *_LDFLAGS,
> then it may happen that the wrong linker path is in effect when the
> corresponding -l options are encountered.

OK, I actually don't care which make-variable they are in, this is
what you are sorting out atm, but I don't think it is very intuitive
to have most stuff in some make-variable, but not the -L option.

Christian




More information about the Dune mailing list