This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Language-specific libraries and `gcc' driver


Richard Henderson wrote:
> On Thu, Jan 20, 2000 at 06:01:07PM +0100, Peter Gerwinski wrote:
> > How can I tell the driver about my language-specific libraries?
> 
> Examine either cp/g++spec.c or f/g77spec.c.  Both add libraries
> to the link line.

I now copied this method (by modifying f/g77spec.c) for GPC, but
I still think that a somewhat simpler method would be desirable.

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.  Of course,
a more elaborate solution (as suggested in this thread) would
be much nicer ...

Thanks,

    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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]