Shared C++ libs on i386-pc-solaris2.5.1
Jim Wilson
wilson@chestnut.cygnus.com
Thu Sep 4 15:05:00 GMT 1997
Has anyone managed to build egcs under Solaris x86 2.5.1?
I cannot get any shared C++ libraries to link (including the
libstdc++.so that is built as part of the distribution -- see below),
Looks like this is a bug in the gcc x86/solaris support. The shared library
support is not completely correct (a common problem). I do not have access
to such a system, so I can't be sure what the correct fix is. However, just
comparing against the sparc/solaris support, I am guessing that libgcc.a was
not compiled PIC.
Does this patch solve your problem?
Thu Sep 4 15:02:27 1997 Jim Wilson <wilson@cygnus.com>
* i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.
Index: t-sol2
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/config/i386/t-sol2,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 t-sol2
*** t-sol2 1997/08/11 15:57:17 1.1.1.1
--- t-sol2 1997/09/04 22:02:12
*************** crtn.o: $(srcdir)/config/i386/sol2-cn.as
*** 33,35 ****
--- 33,36 ----
# routines in crtstuff.c.
CRTSTUFF_T_CFLAGS = -fPIC
+ TARGET_LIBGCC2_CFLAGS = -fPIC
More information about the Gcc
mailing list