[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no-c++
From: |
Sam Steingold |
Subject: |
Re: no-c++ |
Date: |
Sun, 09 Aug 2009 01:29:04 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
> * Bruno Haible <address@hidden> [2009-08-08 11:47:01 +0200]:
>
> 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.
fine.
my suggestion eliminates two expensive steps:
now:
import the non-C++ module
regenerate all autoconf files
try to compile with c++, fail
import no-c++
regenerate all autoconf files
add NO_CXX to gnulib CFLAGS
with my suggestion:
import the non-C++ module; no-c++ is automatically included
regenerate all autoconf files
try to compile with c++, fail
add NO_CXX to gnulib CFLAGS
import & autoconf regeneration are expensive in both that they take time
(and may require Internet access) and require digging around - it is not
obvious that no-c++ module exists and does what you want.
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 9.04 (jaunty)
http://mideasttruth.com http://memri.org http://www.memritv.org
http://openvotingconsortium.org http://dhimmi.com http://thereligionofpeace.com
The software said it requires Windows 3.1 or better, so I installed Linux.
- no-c++, Sam Steingold, 2009/08/05
- Re: no-c++, Bruno Haible, 2009/08/08
- Re: no-c++,
Sam Steingold <=
- 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