[PATCH] Use compilation flags.

Salvo Tomaselli tiposchi at tiscali.it
Thu Aug 21 07:51:18 PDT 2014


In data giovedì 21 agosto 2014 17:14:41, hai scritto:

> i don't think that is needed because qmake is what generates the
> Makefile and CFLAGS,  CXXFLAGS etc are Makefile variables.
> what it does is add the values of the contents of the env. variables
> CFLAGS...to qmake's QMAKE_CFLAGS variable and it *does* require that
> you re-run qmake if the source env. variable changes.
Yes unfortunately you are right and it requires running qmake again. But the 
normal Makefile that gets generated seems to ignore the CFLAGS variable.


> now, adding arguments via the 'make' cmd line invocation is another thing...
> make CFLAGS+= <something>
> to my knowledge, would need the "override CFLAGS" directive in the
> Makefile itself, but qmake does not produce it by default or possibly
> it does not even support it.
Well if there would be a way of having the Makefile properly support those 
env-vars it would be the best solution.

If the only way to do so is to provide special parameters to make, then I 
guess I'll use that patch for now and inform someone in Debian about this 
problem so that the build tools can work in this case as well.

Best
-- 
Salvo Tomaselli

"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
                -- Galileo Galilei

http://ltworf.github.io/ltworf/


More information about the subsurface mailing list