Re: sun2 vs. gcc48

Matt Thomas <[email protected]> Fri, 21 Nov 2014 08:14:02 -0800
Newsgroups gmane.os.netbsd.devel.toolchain,gmane.os.netbsd.ports.sun2,gmane.os.netbsd.ports.m68k
Message-ID <[email protected]>
> On Nov 21, 2014, at 7:37 AM, Chuck Silvers <[email protected]> wrote:
>=20
> <diff.sun2-gcc48.1>

Unfortunately it's the wrong fix.

The problem is that -fPIC is being used to build libgcc.a when sun2 =
doesn't support PIC at all.  Removing that from =
external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk also fixes the problem.

In fact, since we have libgcc_s.so, I wonder if -fPIC should be used for =
building libgcc for any platform.=