This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: value of $CXX when building libraries
- To: Per Bothner <per at bothner dot com>
- Subject: Re: value of $CXX when building libraries
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 10 Jan 2001 08:45:27 +0100
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <m21yucv74j.fsf@kelso.bothner.com>
Per Bothner <per@bothner.com> writes:
[ detailled description of a fragile machinery snipped ]
| Adding all these files to the gcc/g++ command line makes for very
| long command lines. This makes it harder to watch and scan the make
| output. It would be nice if we could factor those out. So I suggest
| either of:
|
| (a) Create a temporary shell script or binary to be used solely for
| compiling target libraries:
| #!/bin/sh
| exec /home/bothner/GNU/linux-gcc/gcc/g++ -B... -L.. -I.. "$@"
| This could be called "new-g++" by analogy with "new-as" and "new-ld".
| I don't know which directory to put it in; either libstdc++-v3 or
| some new "target-bin" directory, possible i686-pc-linux-gnu/bin.
| In that case we could just call the script "g++" and have to option
| of just setting $PATH to include i686-pc-linux-gnu/bin.
I'm leaning toward a binary target/bin/ which knows by itself which -I
and -L flags ae right.
[...]
| Of course whatever solution we come up with for $CXX we should
| probably also do for $CC. It is just that the problem is worse
| for $CXX because of libstdc++.
Agreed.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com