--- gcc/config/i386/t-sol2 2018/04/24 18:17:20 1.1.1.2 +++ gcc/config/i386/t-sol2 2018/04/24 18:31:10 1.1.1.4 @@ -1,8 +1,3 @@ -# We need startup files for Solaris, since we don't get them with the system -# FIXME: Should include "gmon.o" when it is ported. - -EXTRA_PARTS=crt1.o crti.o crtn.o crtbegin.o crtend.o - # we need to supply our own assembly versions of libgcc1.c files, # since the user may not have native 'cc' available @@ -27,3 +22,11 @@ crti.o: $(srcdir)/config/i386/sol2-ci.as crtn.o: $(srcdir)/config/i386/sol2-cn.asm sed -e '/^!/d' <$(srcdir)/config/i386/sol2-cn.asm >crtn.s $(AS) -o crtn.o crtn.s + +# We need to use -fPIC when we are using gcc to compile the routines in +# crtstuff.c. This is only really needed when we are going to use gcc/g++ +# to produce a shared library, but since we don't know ahead of time when +# we will be doing that, we just always use -fPIC when compiling the +# routines in crtstuff.c. + +CRTSTUFF_T_CFLAGS = -fPIC