gordon%stats.ucl.ac.uk@NSFNET-RELAY.AC.UK (Gordon Joly) (04/24/89)
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