value of $CXX when building libraries
Gabriel Dos Reis
gdr@codesourcery.com
Tue Jan 9 23:45:00 GMT 2001
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
More information about the Gcc
mailing list