Article View: gnu.g++.bug
Article #1902More Confusion (in my brain).
From: Gordon Joly
Date: Mon, 24 Apr 1989 13:46
Date: Mon, 24 Apr 1989 13:46
30 lines
1890 bytes
1890 bytes
I find this in the texinfo on gcc and g++.
> `-static'
> On Suns running version 4, this prevents linking with the shared
> libraries. (`-g' has the same effect.)
In the Makefile for g++ 1.35.0- I find
# Note: If you have SunOS 4.0, you can't use GNU LD to link programs
# which use shared libraries. You could add -DNO_GNU_LD to this
# command line, but be warned that collect is not really powerful
# enough to do right by all C++ static constructors, and it would
# be better if you could just add support to GNU LD to handle
# shared libraries.
So the `-static' is wasted in g++, since all images will load statically. Should
use /bin/ld for dynamic linking, which is useful for production versions.
Also, where does newld fit into the scheme of things? And crt0+.o?
Gordon.
Surface mail: Dr. G.C.Joly, Department of Statistical Science,
University College London, Gower Street, LONDON WC1E 6BT, U.K.
E-mail: | Tel: +44 1 387 7050
JANET (U.K. network) gordon@uk.ac.ucl.stats | extension 3636
(Arpa/Internet form: gordon@stats.ucl.ac.uk)| FAX: +44 1 387 8057
Relays: ARPA @nsfnet-relay.ac.uk |
EAN: @ean-relay.ac.uk |
CSNET: %nsfnet-relay.ac.uk@relay.cs.net |
BITNET: %ukacrl.bitnet@cunyvm.cuny.edu, @ac.uk
EARN: @ukacrl.bitnet, @AC.UK, @uk.ac.earn-relay
By uucp/Usenet: ....!uunet!mcvax!ukc!stats.ucl.ac.uk!gordon
Technical Details
Message-ID:
<8904242217.AA19886@AENEAS.MIT.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!gordon%stats.ucl.ac.ukShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!gordon%stats.ucl.ac.uk From: gordon%stats.ucl.ac.uk@NSFNET-RELAY.AC.UK (Gordon Joly) Newsgroups: gnu.g++.bug Subject: More Confusion (in my brain). Message-ID: <8904242217.AA19886@AENEAS.MIT.EDU> Date: 24 Apr 89 13:46:57 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 30