Path: utzoo!telly!attcan!uunet!bu.edu!bu-cs!snorkelwacker!tut.cis.ohio-state.edu!CS.DUKE.EDU!khera From: khera@CS.DUKE.EDU (Vick Khera) Newsgroups: gnu.gcc Subject: Re: Using ld instead of gcc-ld Message-ID: <9002071615.AA15097@macbeth.cs.duke.edu> Date: 7 Feb 90 16:15:25 GMT References: <1025@fs1.ee.ubc.ca> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 27 +--------- | From: mikeb@coho.ee.ubc.ca (Mike Bolotski) | Subject: Using ld instead of gcc-ld | Newsgroups: gnu.gcc | Date: 6 Feb 90 23:57:36 GMT | | Is there an easy way to tell gcc to use the system-provided ld instead | of the GNU ld (installed for g++)? | | Mike Bolotski, Department of Electrical Engineering, | University of British Columbia, Vancouver, Canada | mikeb@salmon.ee.ubc.ca | mikeb%salmon.ee.ubc.ca@relay.ubc.ca | salmon.ee.ubc.ca!mikeb@uunet.uu.net| uunet!ubc-cs!salmon.ee.ubc.ca!mikeb +--------- here is what i did. i changed the installation of ld from .../lib/gcc-ld to .../lib/gcc-ld++. then in gcc.c (in the g++ distribution) i changed the definition of link_spec to look for ld++ rather than ld. now g++ looks for ld++ and only finds it in .../lib/gcc-ld++ and gcc looks for ld, and finds the original system supplied one. this way i get dynamic libraries for gcc (i run SunOS 4.0.3), and the appropriate linking for g++. v. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ..!{mcnc,decvax}!duke!khera Durham, NC 27706