1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

undo delete port

This commit is contained in:
Dirk Meyer 2002-09-10 06:31:51 +00:00
parent d0cb98aa76
commit c110d01800
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66013
8 changed files with 109 additions and 0 deletions

60
devel/objprelink/Makefile Normal file
View File

@ -0,0 +1,60 @@
# New ports collection makefile for: objprelink
# Date Created: 18th November 2001
# Whom: Dominic Marks <dominic_marks@btinternet.com>
#
# $FreeBSD$
#
PORTNAME= objprelink
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= devel kde
MASTER_SITES= http://leon.bottou.com/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.4:${PORTSDIR}/devel/gettext
ONLY_FOR_ARCHS= i386
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:
@cd ${WRKSRC}/binutils/bfd/ && \
${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \
CFLAGS="$$CFLAGS -I${LOCALBASE}/include" \
CPPFLAGS="$$CPPFLAGS -I${LOCALBASE}/include" ./configure \
--disable-shared --enable-static
@cd ${WRKSRC}/binutils/libiberty/ && \
${SETENV} LDFLAGS="$$LDFLAGS -L${LOCALBASE}/lib" \
CFLAGS="$$CFLAGS -I./../include" \
CPPFLAGS="$$CPPFLAGS -I./../include" ./configure \
--disable-shared --enable-static
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 -liconv
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/objprelink ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (objprelink.c.gz) = 53c4c235ec3da92e4a9fb50ffa54beeb
MD5 (binutils-2.11.2.tar.bz2) = cf268611a9d8c0924d514ccaf0360caa

View File

@ -0,0 +1,7 @@
--- binutils/libiberty/Makefile.in.orig Sat Dec 9 10:10:41 2000
+++ binutils/libiberty/Makefile.in Wed Apr 3 19:01:38 2002
@@ -95,3 +95,3 @@
# Subdirectories to recurse into. We need to override this during cleaning
-SUBDIRS = testsuite
+SUBDIRS = # testsuite

View File

@ -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*)

View File

@ -0,0 +1,19 @@
$FreeBSD$
--- objprelink.c.orig Tue Dec 4 14:01:10 2001
+++ objprelink.c Tue Dec 4 14:01:49 2001
@@ -239,12 +239,12 @@
is_vt_section(bfd *abfd, asection *p)
{
const char *name = bfd_section_name(abfd, p);
- static const char prefix[] = ".gnu.linkonce.d.__vt_";
+ static const char prefix[] = ".gnu.linkonce.d._vt";
static flagword w = (SEC_ALLOC|SEC_LOAD|SEC_RELOC|SEC_DATA|SEC_LINK_ONCE);
flagword f = bfd_get_section_flags (abfd, p);
if (f & w == w)
if (!strncmp(name, prefix, sizeof(prefix)-1))
- return name + sizeof(prefix)-6;
+ return name + sizeof(prefix)-4;
return false;
}

View File

@ -0,0 +1 @@
An object file processor which improves dynamic linking performance

View File

@ -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://leon.bottou.com/objprelink/
- Dominic
dominic_marks@btinternet.com

View File

@ -0,0 +1 @@
bin/objprelink