--- gcc/config/i386/t-sol2 2018/04/24 18:23:27 1.1.1.3 +++ gcc/config/i386/t-sol2 2018/04/24 18:31:10 1.1.1.4 @@ -22,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