summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-10-04 15:13:03 +0000
committerhubertf <hubertf>2000-10-04 15:13:03 +0000
commit1cce6cb10feb7b2c09bf7e57f22d92a05e054501 (patch)
treee5bca2b410e52259d799f77795aff02fb8ded5dc /sysutils
parent3db684d2c972073aa21eff26636986414da91913 (diff)
downloadpkgsrc-1cce6cb10feb7b2c09bf7e57f22d92a05e054501.tar.gz
The default NetBSD/sparc /usr/lib/c++rt0.o is compiled -fpic. This
means it can only handle offsets up to a certain size, and can fail to work in large programs. Compiling -fPIC allows larger offsets and should permit large programs to function. This package allows most of pkgsrc on NetBSD/sparc 1.4.x systems. XXX I *think* that libtool needs to be rebuilt after installing this!
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/c++rt0/Makefile28
-rw-r--r--sysutils/c++rt0/files/md55
-rw-r--r--sysutils/c++rt0/pkg/COMMENT1
-rw-r--r--sysutils/c++rt0/pkg/DESCR6
-rw-r--r--sysutils/c++rt0/pkg/PLIST9
5 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/c++rt0/Makefile b/sysutils/c++rt0/Makefile
new file mode 100644
index 00000000000..906cba00e60
--- /dev/null
+++ b/sysutils/c++rt0/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/10/04 15:13:03 hubertf Exp $
+#
+
+DISTNAME= c++rt0-1.0
+DISTFILES= c++rt0.o.PIC c++rt0.o.pic README
+DIST_SUBDIR= c++rt0
+MASTER_SITES+= ftp://ftp.netbsd.org/pub/NetBSD/arch/sparc/c++rt0/
+
+CATEGORIES= sysutils
+MAINTAINER= hubertf@netbsd.org
+
+ONLY_FOR_PLATFORM= NetBSD-1.4*-sparc
+
+EXTRACT_ONLY= # empty
+NO_PATCH= yes
+
+do-build:
+ @${ECHO} Nothing to do.
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/c++rt0
+ ${INSTALL_DATA} ${_DISTDIR}/c++rt0.o.pic ${PREFIX}/lib/c++rt0
+ ${INSTALL_DATA} ${_DISTDIR}/c++rt0.o.PIC ${PREFIX}/lib/c++rt0
+ ${INSTALL_DATA} ${_DISTDIR}/README ${PREFIX}/lib/c++rt0
+ ${MV} /usr/lib/c++rt0.o /usr/lib/c++rt0.o.unPKGd
+ ${INSTALL} -c -m 444 -o root -g wheel ${PREFIX}/lib/c++rt0/c++rt0.o.PIC /usr/lib/c++rt0.o
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/c++rt0/files/md5 b/sysutils/c++rt0/files/md5
new file mode 100644
index 00000000000..640d2f86a21
--- /dev/null
+++ b/sysutils/c++rt0/files/md5
@@ -0,0 +1,5 @@
+$NetBSD: md5,v 1.1.1.1 2000/10/04 15:13:03 hubertf Exp $
+
+MD5 (c++rt0/c++rt0.o.PIC) = 52d3fc1fd5fe947243a82666bc18fc5c
+MD5 (c++rt0/c++rt0.o.pic) = 48f84ae8e4e0ba82ea4a5d4de3f946cf
+MD5 (c++rt0/README) = 5ea0940aab417f3443b82315c4e2f0dc
diff --git a/sysutils/c++rt0/pkg/COMMENT b/sysutils/c++rt0/pkg/COMMENT
new file mode 100644
index 00000000000..508c5a0e13d
--- /dev/null
+++ b/sysutils/c++rt0/pkg/COMMENT
@@ -0,0 +1 @@
+1.4.x/sparc PIC c++rt0.o file
diff --git a/sysutils/c++rt0/pkg/DESCR b/sysutils/c++rt0/pkg/DESCR
new file mode 100644
index 00000000000..0959d2f8d73
--- /dev/null
+++ b/sysutils/c++rt0/pkg/DESCR
@@ -0,0 +1,6 @@
+The default NetBSD/sparc /usr/lib/c++rt0.o is compiled -fpic. This
+means it can only handle offsets up to a certain size, and can fail
+to work in large programs. Compiling -fPIC allows larger offsets
+and should permit large programs to function.
+
+This package allows most of pkgsrc on NetBSD/sparc 1.4.x systems.
diff --git a/sysutils/c++rt0/pkg/PLIST b/sysutils/c++rt0/pkg/PLIST
new file mode 100644
index 00000000000..7e32cfbb331
--- /dev/null
+++ b/sysutils/c++rt0/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/10/04 15:13:03 hubertf Exp $
+@unexec rm -f /usr/lib/c++rt0.o
+@unexec mv /usr/lib/c++rt0.o.unPKGd /usr/lib/c++rt0.o
+lib/c++rt0/c++rt0.o.PIC
+lib/c++rt0/c++rt0.o.pic
+lib/c++rt0/README
+@exec mv /usr/lib/c++rt0.o /usr/lib/c++rt0.o.unPKGd
+@exec install -c -m 444 -o root -g wheel %B/c++rt0.o.PIC /usr/lib/c++rt0.o
+@dirrm lib/c++rt0