--- gcc/config/m88k/t-sysv4 2018/04/24 18:20:37 1.1.1.3 +++ gcc/config/m88k/t-sysv4 2018/04/24 18:27:44 1.1.1.4 @@ -12,3 +12,11 @@ $(MOVE_ASM): $(srcdir)/config/m88k/m88k- LIB2FUNCS_EXTRA = $(MOVE_ASM) LIBGCC1 = libgcc1.null CROSS_LIBGCC1 = libgcc1.null + +# 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