[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no-c++
From: |
Bruno Haible |
Subject: |
Re: no-c++ |
Date: |
Sat, 8 Aug 2009 11:47:01 +0200 |
User-agent: |
KMail/1.9.9 |
Sam Steingold wrote:
> modules which cannot be compiled with c++ (regex, gettimeofday) should depend
> on no-c++
This cannot be implemented as you wish. The ability to compile in C mode when
CC="g++" is done through a variable NO_CXX that has to be added to the compiler
flags. But modifying compiler flags can, in a Makefile.am, only be done on a
per-program or per-library basis, not on a per-compilation-unit basis.
So, you have to add $(NO_CXX) to the compilation flags for your library
yourself.
In theory, one could add a 'traditional-c' flag to the module description, let
gnulib-tool see if one of the modules of the library has this flag set, and add
$(NO_CXX) to the compiler flags of the library. But that would be a lot of code
to develop, and given that you have an easy one-liner workaround, I don't see
much point in having this feature in gnulib proper.
Bruno
- no-c++, Sam Steingold, 2009/08/05
- Re: no-c++,
Bruno Haible <=
- Re: no-c++, Sam Steingold, 2009/08/09
- Re: no-c++, Bruno Haible, 2009/08/09
- Re: no-c++, Simon Josefsson, 2009/08/10
- Re: no-c++, Sam Steingold, 2009/08/10
- Re: no-c++, Simon Josefsson, 2009/08/10
- Re: no-c++, Sam Steingold, 2009/08/10
- Re: no-c++, Paolo Bonzini, 2009/08/10
- Re: no-c++, Simon Josefsson, 2009/08/10
Re: gettimeofday in c++, Bruno Haible, 2009/08/08