diff options
author | will <will@FreeBSD.org> | 2001-12-04 10:23:34 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-12-04 10:23:34 +0800 |
commit | adcfc47272192c518742a32cd86237a05de4db45 (patch) | |
tree | c8084c73d5bae254160107ce23efa3c61951d6ab /devel | |
parent | 64d49c15f0244bdad3ba00782b43ed63faf6e3e8 (diff) | |
download | freebsd-ports-gnome-adcfc47272192c518742a32cd86237a05de4db45.tar.gz freebsd-ports-gnome-adcfc47272192c518742a32cd86237a05de4db45.tar.zst freebsd-ports-gnome-adcfc47272192c518742a32cd86237a05de4db45.zip |
Add objprelink 1.0, an object file processor which improves dynamic
linking performance. This will be used by the upcoming KDE 2.2.2 ports
upgrade. The patch fixes a libbfd compile problem from binutils 2.11.2.
Obtained from: sources.redhat.com CVS; patch-configure based on obrien's
commit to branch binutils-2_11-branch on Feb 19, 2001, which
fixes trad-core compile problems.
Submitted by: Dominic Marks <dominic_marks@btinternet.com>
(I rewrote most of it, but he kicked off the idea.)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/objprelink/Makefile | 55 | ||||
-rw-r--r-- | devel/objprelink/distinfo | 2 | ||||
-rw-r--r-- | devel/objprelink/files/patch-configure | 11 | ||||
-rw-r--r-- | devel/objprelink/pkg-comment | 1 | ||||
-rw-r--r-- | devel/objprelink/pkg-descr | 8 | ||||
-rw-r--r-- | devel/objprelink/pkg-plist | 1 |
7 files changed, 79 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index a5521db6b8dd..47221f444c2c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -299,6 +299,7 @@ SUBDIR += ngpt SUBDIR += noweb SUBDIR += oaf + SUBDIR += objprelink SUBDIR += ocamlweb SUBDIR += omniORB SUBDIR += orbitcpp diff --git a/devel/objprelink/Makefile b/devel/objprelink/Makefile new file mode 100644 index 000000000000..d0395191725c --- /dev/null +++ b/devel/objprelink/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: objprelink +# Date Created: 18th November 2001 +# Whom: Dominic Marks <dominic_marks@btinternet.com> +# +# $FreeBSD$ +# + +PORTNAME= objprelink +PORTVERSION= 1.0 +CATEGORIES= devel kde +MASTER_SITES= http://www.research.att.com/~leonb/objprelink/ \ + ${MASTER_SITE_SOURCEWARE} +MASTER_SITE_SUBDIR= binutils/releases +DISTFILES= objprelink.c.gz binutils-${BINUTILS_VER}.tar.bz2 + +MAINTAINER= dominic_marks@btinternet.com + +LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext + +BINUTILS_VER= 2.11.2 +USE_BZIP2= yes +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/objprelink + +do-extract: + ${MKDIR} ${WRKSRC} + cd ${WRKSRC} && ${TAR} xfy ${DISTDIR}/binutils-${BINUTILS_VER}.tar.bz2 + ${MV} ${WRKSRC}/binutils-${BINUTILS_VER} ${WRKSRC}/binutils + cd ${WRKSRC} && ${GZIP_CMD} -dc ${DISTDIR}/objprelink.c.gz \ + > ${WRKSRC}/objprelink.c + +do-configure: +.for DIR in bfd libiberty + cd ${WRKSRC}/binutils/${DIR}/ && \ + ${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \ + CFLAGS="$$CFLAGS -I${LOCALBASE}/include" \ + CPPFLAGS="$$CPPFLAGS -I${LOCALBASE}/include" ./configure \ + --disable-shared --enable-static +.endfor + +do-build: +.for DIR in bfd libiberty + cd ${WRKSRC}/binutils/${DIR}/ && ${GMAKE} +.endfor + ${CC} ${CFLAGS} -static -o ${WRKSRC}/objprelink ${WRKSRC}/objprelink.c \ + ${WRKSRC}/binutils/bfd/libbfd.a \ + ${WRKSRC}/binutils/libiberty/libiberty.a \ + -I${WRKSRC}/binutils/include -I${WRKSRC}/binutils/bfd \ + -I${WRKSRC}/binutils/libiberty \ + -L${LOCALBASE}/lib -lintl + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/devel/objprelink/distinfo b/devel/objprelink/distinfo new file mode 100644 index 000000000000..fcc86a9cec4a --- /dev/null +++ b/devel/objprelink/distinfo @@ -0,0 +1,2 @@ +MD5 (objprelink.c.gz) = 53c4c235ec3da92e4a9fb50ffa54beeb +MD5 (binutils-2.11.2.tar.bz2) = cf268611a9d8c0924d514ccaf0360caa diff --git a/devel/objprelink/files/patch-configure b/devel/objprelink/files/patch-configure new file mode 100644 index 000000000000..cb8170ab1566 --- /dev/null +++ b/devel/objprelink/files/patch-configure @@ -0,0 +1,11 @@ +--- binutils/bfd/configure Tue Jun 19 14:58:08 2001 ++++ binutils/bfd/configure.new Wed Nov 28 16:29:21 2001 +@@ -5016,7 +5016,7 @@ + TRAD_HEADER='"hosts/symmetry.h"' + ;; + i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) +- COREFILE=trad-core.lo ++ COREFILE='' + TRAD_HEADER='"hosts/i386bsd.h"' + ;; + i[3456]86-*-freebsd*) diff --git a/devel/objprelink/pkg-comment b/devel/objprelink/pkg-comment new file mode 100644 index 000000000000..b75e07f98bee --- /dev/null +++ b/devel/objprelink/pkg-comment @@ -0,0 +1 @@ +An object file processor which improves dynamic linking performance diff --git a/devel/objprelink/pkg-descr b/devel/objprelink/pkg-descr new file mode 100644 index 000000000000..fe72655c5522 --- /dev/null +++ b/devel/objprelink/pkg-descr @@ -0,0 +1,8 @@ +This is a port of objprelink. This application is used on object files +before the linking stage to improve performance in applications which +rely heavily upon dynamic linking performance such as a Qt and KDE. + +WWW: http://www.research.att.com/~leonb/objprelink + +- Dominic +dominic_marks@btinternet.com diff --git a/devel/objprelink/pkg-plist b/devel/objprelink/pkg-plist new file mode 100644 index 000000000000..c95bf5ed9e0b --- /dev/null +++ b/devel/objprelink/pkg-plist @@ -0,0 +1 @@ +bin/objprelink |