Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2010 11:23:46 +0400
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/148005: [patch] devel/binutils: add gold option
Message-ID:  <861vc25fr1.fsf@gmail.com>
Resent-Message-ID: <201006200730.o5K7U4tC027426@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148005
>Category:       ports
>Synopsis:       [patch] devel/binutils: add gold option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 20 07:30:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
tested on chromium port: 3s (gold) vs. 102s (ld)
>Description:
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/binutils/Makefile
===================================================================
RCS file: /a/.cvsup/ports/devel/binutils/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- devel/binutils/Makefile	11 Jun 2010 15:09:41 -0000	1.11
+++ devel/binutils/Makefile	20 Jun 2010 07:23:08 -0000
@@ -24,7 +24,8 @@ BUILD_DEPENDS=	${LOCALBASE}/lib/libgmp.s
 
 CONFLICTS=	libbfd-[0-9]*
 
-OPTIONS=	NLS "Enable National Language Support" off
+OPTIONS=	GOLD "Use gold instead of ld" off \
+		NLS "Enable National Language Support" off
 
 CFLAGS+=	-I${LOCALBASE}/include
 CONFIGURE_ENV+=	LDFLAGS="-L${LOCALBASE}/lib"
@@ -38,7 +39,6 @@ MAN1=		addr2line.1 \
 		c++filt.1 \
 		gprof.1 \
 		dlltool.1 \
-		ld.1 \
 		nlmconv.1 \
 		nm.1 \
 		objcopy.1 \
@@ -56,11 +56,18 @@ INFO=		as \
 		standards \
 		gprof \
 		bfd \
-		configure \
-		ld
+		configure
 
 .include <bsd.port.pre.mk>
 
+.if !defined(WITHOUT_GOLD)
+CONFIGURE_ARGS+=--enable-gold
+.else
+MAN1+=		ld.1
+INFO+=		ld
+CONFIGURE_ARGS+=--disable-gold
+.endif
+
 .if defined(WITH_NLS)
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861vc25fr1.fsf>