[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUmakefile CXX flags ignored
From: |
Wolfgang Lux |
Subject: |
Re: GNUmakefile CXX flags ignored |
Date: |
Sat, 17 Aug 2013 10:38:29 +0200 |
Riccardo Mottola wrote:
> David Chisnall wrote:
>> On 16 Aug 2013, at 22:34, Riccardo Mottola <riccardo.mottola@libero.it>
>> 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.
Wolfgang