Language-specific libraries and `gcc' driver
Peter Gerwinski
peter@gerwinski.de
Thu Apr 20 18:55:00 GMT 2000
Hello,
Jamie Lokier wrote:
> Peter Gerwinski wrote:
> > Mike Stump wrote:
> > > It would be nice to add support to gcc to let it know about the
> > > runtime libraries. One problem is gcc foo.o style compiling doesn't
> > > otherwise indicate which possible language was in use. One could nm
> > > the file, and then make guesses, or just add in all the runtimes for
> > > all languages, but...
> >
> > IMHO it would be acceptable if one had to specify libraries
> > explicitly when linking `.o' files, while libraries are added
> > automatically when the source languages are known.
>
> Deducing the libraries from an `-x language' option might be ok too.
> Doesn't handle the case of multiple languages linked together though.
One could introduce another option to `gcc' with the meaning
"please link with the libraries for this and that language".
Or, one can use the more elaborate automatism by Theodore
Papadopoulo. (But wouldn't that approach require `collect2'
being run on all systems?)
Anyone working towards this?
Peter
--
http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net
More information about the Gcc
mailing list