summaryrefslogtreecommitdiff
path: root/sysutils/c++rt0/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-10-04 15:13:03 +0000
committerhubertf <hubertf@pkgsrc.org>2000-10-04 15:13:03 +0000
commite2c770a4f72fa04c5e10e54b31f7f1e4240de1b1 (patch)
treee5bca2b410e52259d799f77795aff02fb8ded5dc /sysutils/c++rt0/Makefile
parent47d3833a9e8bd5c9c1844684e4d82ed2b8f5afed (diff)
downloadpkgsrc-e2c770a4f72fa04c5e10e54b31f7f1e4240de1b1.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/c++rt0/Makefile')
-rw-r--r--sysutils/c++rt0/Makefile28
1 files changed, 28 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"