Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/lib/libgcc/libgcc If building with MKPIC=n...
details: https://anonhg.NetBSD.org/src/rev/77010b22f28d
branches: trunk
changeset: 790295:77010b22f28d
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 02 18:25:43 2013 +0000
description:
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
diffstat:
external/gpl3/gcc/lib/libgcc/libgcc/Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 329c476b105a -r 77010b22f28d external/gpl3/gcc/lib/libgcc/libgcc/Makefile
--- a/external/gpl3/gcc/lib/libgcc/libgcc/Makefile Wed Oct 02 16:48:26 2013 +0000
+++ b/external/gpl3/gcc/lib/libgcc/libgcc/Makefile Wed Oct 02 18:25:43 2013 +0000
@@ -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 @@
.if empty(LIBGCC_MACHINE_ARCH:Mearm*)
SRCS+= ${LIB2_EH} ${LIB2_EHASM}
.endif
+PICFLAGS=
.else
CPPFLAGS+= -DPIC
.endif
Home |
Main Index |
Thread Index |
Old Index