Re: [xml] The order of arguments when compiling
- From: spam spam spam spam free fr
- To: xml gnome org
- Subject: Re: [xml] The order of arguments when compiling
- Date: Mon, 20 Feb 2012 09:09:42 +0100 (CET)
I changed my Makefile.am and I regenerated with autoreconf and then re-executed the configure script.
I think I have a bad Makefile.am.
The order of arguments when compiling is incorrect when I use _LDFLAGS.
And when I try with _LIBS, it doesn't use it at all.
Do you see what is wrong in my Makefile.am file?
----- Mail original -----
De: "Earnie Boyd" <earnie users sourceforge net>
Ã: "spam spam spam spam" <spam spam spam spam free fr>
Cc: xml gnome org
EnvoyÃ: Vendredi 17 FÃvrier 2012 16:09:24
Objet: Re: [xml] The order of arguments when compiling
On Fri, Feb 17, 2012 at 7:12 AM, <spam spam spam spam free fr> wrote:
Indeed, I don't know this option.
But, if I use it in my Makefile.am:
bin_PROGRAMS = xmlparsefile
xmlparsefile_SOURCES = main.c
xmlparsefile_LIBS = `xml2-config --libs`
xmlparsefile_CFLAGS = -Wall -Wextra `xml2-config --cflags`
The compile does now :
$ gcc -DPACKAGE_NAME=\"xmlparsefile\" -DPACKAGE_TARNAME=\"xmlparsefile\" -DPACKAGE_VERSION=\"0.1\"
-DPACKAGE_STRING=\"xmlparsefile\ 0.1\" -DPACKAGE_BUGREPORT=\"samson pierre etud univ-montp2 fr\"
-DPACKAGE_URL=\"\" -DPACKAGE=\"xmlparsefile\" -DVERSION=\"0.1\" -I. Â Â-Wall -Wextra `xml2-config --cflags`
-g -O2 -MT xmlparsefile-main.o -MD -MP -MF .deps/xmlparsefile-main.Tpo -c -o xmlparsefile-main.o `test -f
'main.c' || echo './'`main.c
mv -f .deps/xmlparsefile-main.Tpo .deps/xmlparsefile-main.Po
So, it does something like this :
$ gcc -Wall -Wextra `xml2-config --cflags` main.c
And I got the same error.
The "`xml2-config --libs`" has completely disappeared.
Are you sure about _LIBS option?
What files did you change? If you changed Makefile.am did you
regenerate with autoreconf and then re-execute configure?
--
Earnie
-- https://sites.google.com/site/earnieboyd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]