This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
more on --enable-shared on Sun-3
- To: egcs-bugs at cygnus dot com
- Subject: more on --enable-shared on Sun-3
- From: Kate Hedstrom <kate at ahab dot Rutgers dot EDU>
- Date: Sat, 15 Aug 1998 11:26:17 -0400 (EDT)
I promised to let you all know how things went with the Sun assembler.
With Sun's ld I run into trouble at:
/usr/export/home/kate/egcs-19980803/gcc/xgcc -B/usr/export/home/kate/egcs-19980803/gcc/ -g -O2 -fno-implicit-templates -fpic -shared -o libstdc++.so.2.9.0 `cat piclist`
xgcc: unrecognized option `-shared'
ld: Undefined symbol
_main
collect2: ld returned 2 exit status
gmake[2]: *** [libstdc++.so.2.9.0] Error 1
gmake[2]: Leaving directory `/usr/export/home/kate/egcs-19980803/m68k-sun-sunos4.1.1/libstdc++'
gmake[1]: *** [all-target-libstdc++] Error 2
gmake[1]: Leaving directory `/usr/export/home/kate/egcs-19980803'
gmake: *** [bootstrap] Error 2
With the binutils ld it is at the same place:
/usr/export/home/kate/egcs-19980803/gcc/xgcc -B/usr/export/home/kate/egcs-19980803/gcc/ -g -O2 -fno-implicit-templates -fpic -shared -o libstdc++.so.2.9.0 `cat piclist`
xgcc: unrecognized option `-shared'
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/lib/crt0.o(.text+0x34): undefined reference to `main'
/usr/local/m68k-sun-sunos4.1.1/bin/ld: bfd assertion fail sunos.c:2530
gmake[2]: *** [libstdc++.so.2.9.0] Error 1
gmake[2]: Leaving directory `/usr/export/home/kate/egcs-19980803/m68k-sun-sunos4.1.1/libstdc++'
gmake[1]: *** [all-target-libstdc++] Error 2
gmake[1]: Leaving directory `/usr/export/home/kate/egcs-19980803'
gmake: *** [bootstrap] Error 2
I can be happy with static libraries. The Perl build is going better
with the Sun assembler.
Thanks,
Kate