Received: from eggs.gnu.org ([208.118.235.92]:50954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg4bT-000482-0u for qemu-devel@nongnu.org; Tue, 04 Dec 2012 21:20:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tg4bR-0005Wd-Iq for qemu-devel@nongnu.org; Tue, 04 Dec 2012 21:20:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfvEt-0007Ta-BC for qemu-devel@nongnu.org; Tue, 04 Dec 2012 11:20:55 -0500 Date: Tue, 4 Dec 2012 14:22:28 -0200 From: Eduardo Habkost Message-ID: <20121204162228.GK4255@otherpad.lan.raisama.net> References: <1354627180-25704-1-git-send-email-ehabkost@redhat.com> <1354627180-25704-2-git-send-email-ehabkost@redhat.com> <50BE1ED8.5030509@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50BE1ED8.5030509@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC 1/8] move -I$(SRC_PATH)/include compiler flag to Makefile.objs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Paolo Bonzini , qemu-devel@nongnu.org, Anthony Liguori , Igor Mammedov On Tue, Dec 04, 2012 at 05:03:36PM +0100, Andreas F=E4rber wrote: > Am 04.12.2012 14:19, schrieb Eduardo Habkost: > > The flag is necessary for code that doesn't use the variables from > > Makefile (but use Makefile.objs), like libcacard/ and stubs/. > >=20 > > Signed-off-by: Eduardo Habkost >=20 > I don't quite understand the rationale of this patch. > libcacard/ and stubs/ shouldn't need vl.o, do they? The CFLAGS move > makes more sense to me. The change is not about vl.o, is about having having the header files fro= m include/qemu available when building libcacard and libqemustub. I had to do that because now some files included by files in libcacard/ a= nd stubs/ end up including header files from include/qemu. e.g.: lt CC stubs/sysbus.lo In file included from /home/ehabkost/pessoal/proj/virt/qemu/stubs/sysbus.= c:1:0: /home/ehabkost/pessoal/proj/virt/qemu/hw/qdev-core.h:7:25: fatal error: q= emu/object.h: No such file or directory compilation terminated. make[1]: *** [stubs/sysbus.lo] Error 1 make: *** [subdir-libcacard] Error 2 I remember seeing a similar error when building libcacard while working i= n this series, but now I can't trigger it anymore. >=20 > Paolo, can you take a look please? >=20 > Thanks, > Andreas >=20 > > --- > > Makefile | 1 - > > Makefile.objs | 15 +++++++++------ > > 2 files changed, 9 insertions(+), 7 deletions(-) > >=20 > > diff --git a/Makefile b/Makefile > > index 9ecbcbb..739d9cd 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -145,7 +145,6 @@ audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS +=3D= $(FMOD_CFLAGS) > > =20 > > QEMU_CFLAGS+=3D$(CURL_CFLAGS) > > =20 > > -QEMU_CFLAGS +=3D -I$(SRC_PATH)/include > > =20 > > ui/cocoa.o: ui/cocoa.m > > =20 > > diff --git a/Makefile.objs b/Makefile.objs > > index 3c7abca..0a0a33a 100644 > > --- a/Makefile.objs > > +++ b/Makefile.objs > > @@ -1,4 +1,13 @@ > > ####################################################################= ### > > +# general compiler flags > > + > > +QEMU_CFLAGS +=3D $(GLIB_CFLAGS) > > +QEMU_CFLAGS +=3D -I$(SRC_PATH)/include > > + > > +vl.o: QEMU_CFLAGS+=3D$(GPROF_CFLAGS) > > +vl.o: QEMU_CFLAGS+=3D$(SDL_CFLAGS) > > + > > +####################################################################= ### > > # Stub library, linked in tools > > stub-obj-y =3D stubs/ > > =20 > > @@ -236,12 +245,6 @@ universal-obj-y +=3D $(qapi-obj-y) > > qga-obj-y =3D qga/ qemu-ga.o module.o qemu-tool.o > > qga-obj-$(CONFIG_POSIX) +=3D qemu-sockets.o qemu-option.o > > =20 > > -vl.o: QEMU_CFLAGS+=3D$(GPROF_CFLAGS) > > - > > -vl.o: QEMU_CFLAGS+=3D$(SDL_CFLAGS) > > - > > -QEMU_CFLAGS+=3D$(GLIB_CFLAGS) > > - > > nested-vars +=3D \ > > stub-obj-y \ > > qga-obj-y \ >=20 > --=20 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrn= berg --=20 Eduardo