🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53269

shared libraries and gcc2

#53269
From: David J. MacKenzie
Date: Sun, 23 Feb 1992 18:33
17 lines
1192 bytes
On our Suns, I have gcc1 set up to use Sun's ld so it can produce
dynamically linked executables.  By editing gcc.c, I set up g++1 to
use "ld++" (the name under which I installed the GNU ld) since Sun's
ld can't handle C++.

For gcc2, the best way I can think of to get the same effect is to
make g++ a shell script along the lines of:

exec gcc -B<directory containing GNU ld> "$@"

so that it gets the GNU "ld" instead of Sun's /bin/ld, but gcc invoked
normally still gets Sun's ld.

Can anyone think of a cleaner way?

Also, how does gcc2 determine in which directory to look for C++
header files?  The file INSTALL doesn't mention, except for VMS.
Technical Details
Message-ID: <199202240433.AA11966@frob.eng.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!eng.umd.edu!djm

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,3d792e4afa948436,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-02-23 20:48:46 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!eng.umd.edu!djm
From: djm@eng.umd.edu (David J. MacKenzie)
Subject: shared libraries and gcc2
Message-ID: <199202240433.AA11966@frob.eng.umd.edu>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 23 Feb 1992 18:33:19 GMT
Lines: 17