pkg-config (Re: Linux binary compatibility)
Owen Taylor
otaylor at redhat.com
Sun Feb 29 00:04:09 EET 2004
On Sat, 2004-02-28 at 15:50, David Faure wrote:
> BTW, the -l libs should be separate from the -L flags.
> In standard use of automake, the first ones go to LIBADD or LDADD, while the
> second one goes to LDFLAGS.
> Slightly different issue, but also one that makes people write lots of sed'ing
> over pkg-config's output.
A random quote from the automake docs:
> `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.
I know of no of no harm from having -L in LDADD/LIBADD.
Regards,
Owen
More information about the xdg
mailing list