[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking in C++ mode
From: |
Pierre Sarrazin |
Subject: |
Re: Linking in C++ mode |
Date: |
Sun, 10 Nov 2002 22:39:59 -0500 |
User-agent: |
Mutt/1.2.5.1i |
Dixit John Levon <levon at movementarian.org> (2002-11-11 00:36):
> On Sun, Nov 10, 2002 at 05:42:30PM -0500, Pierre Sarrazin wrote:
> > Another way to force automake to use g++ to link the application
> > seems to be to leave the .c alone, but to add a dummy.cc file to
> > the application's _SOURCES variable. The .c file is still compiled
> > by gcc.
>
> This seems like the best hack suggested so far.
By the way, to avoid having the 'dist' target include dummy.cc in
the distributed source tarball, one has to say this:
prog_SOURCES = prog.c
nodist_prog_SOURCES = dummy.cc
And to have 'clean' erase the generated dummy.cc:
clean-local:
rm -f dummy.cc
--
Pierre Sarrazin <sarrazip at sympatico . ca>
- Linking in C++ mode, John Levon, 2002/11/09
- Re: Linking in C++ mode, Earnie Boyd, 2002/11/10
- Re: Linking in C++ mode, Ralf Corsepius, 2002/11/10
- Re: Linking in C++ mode, John Levon, 2002/11/10
- Re: Linking in C++ mode, Pierre Sarrazin, 2002/11/10
- Re: Linking in C++ mode, John Levon, 2002/11/10
- Re: Linking in C++ mode,
Pierre Sarrazin <=
- Re: Linking in C++ mode, John Levon, 2002/11/10
- Re: Linking in C++ mode, Pierre Sarrazin, 2002/11/10
- Re: Linking in C++ mode, Earnie Boyd, 2002/11/10
- Re: Linking in C++ mode, John Levon, 2002/11/10
- Re: Linking in C++ mode, Ralf Corsepius, 2002/11/10
- Re: Linking in C++ mode, Ralf Corsepius, 2002/11/10
- Re: Linking in C++ mode, John Levon, 2002/11/11
- Re: Linking in C++ mode, Alexandre Duret-Lutz, 2002/11/14
- Re: Linking in C++ mode, John Levon, 2002/11/14