|
From: | Riccardo Mottola |
Subject: | Re: GNUmakefile CXX flags ignored |
Date: | Mon, 26 Aug 2013 11:10:59 +0200 |
User-agent: | Mozilla/5.0 (X11; NetBSD i386; rv:17.0) Gecko/20130221 Thunderbird/17.0.2 |
Hi, On 08/17/13 10:38, Wolfgang Lux wrote:
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.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.
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
[Prev in Thread] | Current Thread | [Next in Thread] |