mingw-cross-env-list
[Top][All Lists]
Advanced

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

Re: [Mingw-cross-env-list] Qt compilation options


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] Qt compilation options
Date: Sat, 10 Aug 2013 10:27:03 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Werner LEMBERG schrieb:
> >> Since some .mk files set CFLAGS the hard way (e.g. in
> >> `twolame.mk'), not allowing for any customization, it seems to be
> >> unsupported, which is a pity.
> > 
> > You can export CFLAGS (and anything else you like) in settings.mk -
> > it's read after the `unexport` commands and will apply globally to
> > all packages.
> 
> Alas, this is not correct.  As written above, some packages use
> hard-coded CFLAGS which can't be overridden.  For example, in
> `guile.mk' it is set as
> 
>   CFLAGS='-Wno-unused-but-set-variable'
> 
> I see no reason why the user can't provide her own CFLAGS value, so
> the correct form would rather be
> 
>   CFLAGS="$(CFLAGS) -Wno-unused-but-set-variable"
> 
> I believe.  The same holds for almost all other *.mk files.c

Sorry for not answering directly on your proposal, and
to just nitpicking about it. But your command should be
quoted with single-quotes rather than double-quotes:

CFLAGS='$(CFLAGS) -Wno-unused-but-set-variable'

In other words, don't confuse the shell-part and the
Makefile-part of these commands.


Regards,
Volker

-- 
Volker Grabsch
---<<(())>>---



reply via email to

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