Hi,

On 08/17/13 10:38, Wolfgang Lux wrote:
Riccardo Mottola wrote:

David Chisnall wrote:
On 16 Aug 2013, at 22:34, Riccardo Mottola <[email protected]> wrote:

Anyway, what happens is that the CC file is compiled using CLFAGS and not the 
CXXFLAGS.
The compiling with CFLAGS is also a bug, as C-compiler flags (e.g. -std=c99) 
are often invalid for C++.  I've hit this problem before.
Yes, it is incorrect. In this case it doesn't harm and, perhaps, I can add or I 
need to duplicate them. -I flags should not be CFLAGS I suppose, but CPPFLAGS, 
which are traditionally shared.

Anyway, the bigger problem is that CXXFLAGS are being ignored.
I had a quick look through rules.make and it seems that GNUstep-make uses 
CCFLAGS instead of CXXFLAGS. Those flags are added to the ones given in CFLAGS, 
so the incorrect behavior mentioned by David applies.
I don't know if there is a "standard". I see CXXFLAGS mentioned everywhere in the automake and autoconf documentation as well in most examples.
Shouldn't we switch or try to support both?

I indeed changed to CCFLAGS instead of CXXFLAGS and it now works (fighting with other makefile problems).

Riccardo


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to