[Top][All Lists]

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

Re: [Qemu-devel] CFLAGS nitpicking

From: Thomas Schwinge
Subject: Re: [Qemu-devel] CFLAGS nitpicking
Date: Mon, 25 Oct 2004 18:55:42 +0200
User-agent: Mutt/

On Sun, Oct 24, 2004 at 10:38:06PM +0200, Magnus Damm wrote:
> Hello,
> I see that CFLAGS is set both in config-host.mak, Makefile and
> Makefile.target. This is confusing. Is there any particular reason for
> this implementation or is CFLAGS in config-host.mak just old cruft that
> should be removed?

At present it is not possible to alter 'CFLAGS', 'LDFLAGS' and 'LIBS'
when building QEMU without modifiying all the Makefiles.

I'd suggest the following:
The lines that explicitally set 'CFLAGS', 'LDFLAGS', 'LIBS' (and
others?) are removed from all Makefiles.
The values they are set to at present (in the Makefiles) are made the
defaults for configure's '--extra-cflags', '--extra-ldflags' and
'--extra-libs' (which isn't used at all by now).

I need to specify these '*FLAGS' when building as I do not have
installed any of the packages QEMU depends on in '/usr/' or similar and
thus have to tell it where to find them.

Another problem is that '/lib/ld-linux.so.2' is hard-coded in
'linux-user/main.c', which is also not true on any of my systems; I'd
like to have it configurable as well.

What are the SEARCH_DIRs in '*.ld' used for?

I could / would try to create pachtes for all of these.
What do you think?


This list's mbox archives are not available on
<URL:http://lists.gnu.org/archive/html/qemu-devel/> (I reported this to
Does anyone know where I could get them?
I do not want to read the online, but download them instead.

reply via email to

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