[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] and the _LDADD option

From: spam . spam . spam . spam
Subject: and the _LDADD option
Date: Tue, 21 Feb 2012 09:06:47 +0100 (CET)


In my I try this:
xmlparsefile_LDFLAGS = `pkg-config libxml-2.0 --libs-only-L`
xmlparsefile_LDADD = `pkg-config libxml-2.0 --libs-only-l`
Then it is refused:
$ autoreconf
src/ linker flags such as `--libs-only-l`' belong in 
autoreconf: automake failed with exit status: 1

So there is an other solution:
-edit the file:
PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= 2.7.8])
-edit the file:
xmlparsefile_LDADD = $(LIBXML_LIBS)
xmlparsefile_CFLAGS = -Wall -Wextra $(LIBXML_CFLAGS)
An now, it is accepted.

But I am wondering this: why the first solution doesn't works?

Thank you.

reply via email to

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