[gnu.g++.bug] loader error 'Undefined symbol "-dc"' compiling with g++-1.34.1

slk@SUN.MCS.CLARKSON.EDU (Steve Knodle) (03/23/89)

Context: gcc 1.34, g++ 1.34.1 on sun3 OS 4.0.1

Compiling test? in libg++/tests produces loader error: 
Undefined symbol " -dc" apparently because LINK_SYMBOLS
has "-e -dc", omitting the entry point for  "-e", and thus
absorbing the following "-dc".

This is almost certainly due to an error in my g++ setup
and installation. What might I be doing wrong?
------------------ typescript ------------------------------
Script started on Wed Mar 22 11:25:49 1989
sun.mcs.clarkson.edu% pwd
/usr/mcs/Maxima/GNU/dist-libg++
sun.mcs.clarkson.edu% cd tests
sun.mcs.clarkson.edu% rm *.o
sun.mcs.clarkson.edu% make test0
g++ -c -g -O -fchar-charconst -I/usr/mcs/Maxima/GNU/lib/g++-
include -DLDXX=\"/usr/mcs/Maxima/GNU/lib/gcc-ld++\" -DCRT1X=
\"/usr/mcs/Maxima/GNU/lib/crt1+.o\" test.hello.cc -o test.he
llo.o
/usr/include/sys/fcntlcom.h:62: warning: type declaration of
 flock shadows previous declaration
/usr/include/sys/fcntlcom.h:62: warning: `flock' was declare
d `extern' and later `static'
g++ test.hello.o -o test0
Undefined symbols:
 -dc

sun.mcs.clarkson.edu% exit
sun.mcs.clarkson.edu% 
script done on Wed Mar 22 11:27:05 1989
------------------ g++/config.h ------------------------------
/* Config file for running GCC on Sunos version 4.
   This file is good for either a Sun 3 or a Sun 4 machine.  */

#ifdef sparc 
#include "xm-sparc.h" 
#else 
#include "xm-m68k.h"
#endif

/* Provide required defaults for linker -e and -d switches.
   Also, it is hard to debug with shared libraries,
   so don't use them if going to debug.  */

#define LINK_SPEC "%{!e*:-e} -dc -dp %{g:-Bstatic} %{static:-Bstatic}"