[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CFLAGS and CXXFLAGS
From: |
Ralf Wildenhues |
Subject: |
Re: CFLAGS and CXXFLAGS |
Date: |
Wed, 9 Sep 2009 19:14:05 +0200 |
User-agent: |
Mutt/1.5.20 (2009-08-09) |
Hello Dan,
* Dan Smithers wrote on Wed, Sep 09, 2009 at 05:12:46PM CEST:
> Should the C++ compiler use the CFLAGS passed into automake? or do I
> need to manually include them in CXXFLAGS?
Neither. At least if you are a package author, then you shouldn't pass
CFLAGS to the C++ compiler nor CXXFLAGS to the C compiler. The user
ought to be able to choose different compilers (even from different
vendors) for each; also, there are compiler suites where the C and the
C++ compiler have a different supported option set.
CPPFLAGS are passed to both compilers, however, as they both make use of
the preprocessor.
Cheers,
Ralf