[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Makefile.am and the _LDADD option
From: |
spam . spam . spam . spam |
Subject: |
Makefile.am and the _LDADD option |
Date: |
Tue, 21 Feb 2012 09:06:47 +0100 (CET) |
Hello,
In my Makefile.am 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/Makefile.am:6: linker flags such as `--libs-only-l`' belong in
`xmlparsefile_LDFLAGS
autoreconf: automake failed with exit status: 1
So there is an other solution:
-edit the configure.ac file:
PKG_CHECK_MODULES([LIBXML], [libxml-2.0 >= 2.7.8])
-edit the Makefile.am 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.
- Makefile.am and the _LDADD option,
spam . spam . spam . spam <=