automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prog_LDADD at the end of the linking command line


From: Benoit SIGOURE
Subject: Re: prog_LDADD at the end of the linking command line
Date: Fri, 19 Oct 2007 21:59:44 +0200

On Oct 19, 2007, at 7:16 PM, Ralf Wildenhues wrote:

Hello Benoit,

* Benoit SIGOURE wrote on Fri, Oct 19, 2007 at 06:48:25PM CEST:

# Add boost libraries.
AM_CXXFLAGS += $(BOOST_CPPFLAGS)
AM_LDFLAGS  += $(BOOST_LDFLAGS) $(BOOST_THREAD_LIB)

Don't put libs (-l...) in LDFLAGS, it messes up the ordering. Put them
in *_LDADD/*_LIBADD or LIBS.  Note that LIBS comes last, so the most
lowlevel ones should be listed there.

Somewhat surprising but logical.  Thanks!

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]