Module Name: src Committed By: christos Date: Wed Oct 2 18:25:43 UTC 2013
Modified Files: src/external/gpl3/gcc/lib/libgcc/libgcc: Makefile Log Message: If building with MKPIC=no, then set PICFLAGS to empty, otherwise bsd.lib.mk sets PICFLAGS=-fPIC and we pick this via CSHLIBFLAGS to build .o objects. This breaks the sun2 port, because with -fPIC we end up producing short relative pic branches for $_exception_handler, so we get relocation errors. Arguably: 1. MKPIC=no should not set PICFLAGS in bsd.lib.mk 2. CSHLIBFLAGS should not be used in non pic (.o) productions To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile diff -u src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.15 src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.16 --- src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile:1.15 Thu Sep 12 11:36:14 2013 +++ src/external/gpl3/gcc/lib/libgcc/libgcc/Makefile Wed Oct 2 14:25:43 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2013/09/12 15:36:14 joerg Exp $ +# $NetBSD: Makefile,v 1.16 2013/10/02 18:25:43 christos Exp $ REQUIRETOOLS= yes NOLINT= # defined @@ -28,6 +28,7 @@ SRCS+= ${LIB2FUNCS} ${LIB2FUNCS_ST} ${L .if empty(LIBGCC_MACHINE_ARCH:Mearm*) SRCS+= ${LIB2_EH} ${LIB2_EHASM} .endif +PICFLAGS= .else CPPFLAGS+= -DPIC .endif