Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src Apply patch (requested by dmacmahill):
details: https://anonhg.NetBSD.org/src/rev/880ef71f800b
branches: netbsd-1-4
changeset: 470870:880ef71f800b
user: he <he%NetBSD.org@localhost>
date: Sat Aug 26 18:32:12 2000 +0000
description:
Apply patch (requested by dmacmahill):
Compile c++rt0.o with -fPIC on sparc. This means that C++ shared
libraries with global constructors (which must link c++rt0.o on
sparc/a.out) must also be compiled -fPIC.
diffstat:
gnu/lib/libstdc++/Makefile | 6 +++++-
lib/csu/c++/Makefile | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 29b07f54181d -r 880ef71f800b gnu/lib/libstdc++/Makefile
--- a/gnu/lib/libstdc++/Makefile Tue Aug 22 15:19:05 2000 +0000
+++ b/gnu/lib/libstdc++/Makefile Sat Aug 26 18:32:12 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 1999/02/13 02:54:23 lukem Exp $
+# $NetBSD: Makefile,v 1.9.2.1 2000/08/26 18:32:12 he Exp $
LIB= stdc++
@@ -70,6 +70,10 @@
.cc:
@true
+.if (${MACHINE_ARCH} == "sparc")
+CPICFLAGS= -fPIC -DPIC
+.endif
+
.include <bsd.info.mk>
.include <bsd.lib.mk>
.include <bsd.subdir.mk>
diff -r 29b07f54181d -r 880ef71f800b lib/csu/c++/Makefile
--- a/lib/csu/c++/Makefile Tue Aug 22 15:19:05 2000 +0000
+++ b/lib/csu/c++/Makefile Sat Aug 26 18:32:12 2000 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 1999/02/27 03:27:54 tv Exp $
+# $NetBSD: Makefile,v 1.11.2.1 2000/08/26 18:32:12 he Exp $
CPPFLAGS+= -DLIBC_SCCS
-COPTS+= -fpic
+COPTS+= -fPIC
OBJS= c++rt0.o
all: ${OBJS}
Home |
Main Index |
Thread Index |
Old Index