ports/136607: [PATCH] lang/gcc43 lang/gcc44: add OPTION for devel/binutils

Martin Matuska mm at FreeBSD.org
Thu Jul 9 09:00:10 UTC 2009


>Number:         136607
>Category:       ports
>Synopsis:       [PATCH] lang/gcc43 lang/gcc44: add OPTION for devel/binutils
>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:   Thu Jul 09 09:00:09 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska
>Release:        FreeBSD 7.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD 7.2-STABLE i386 and amd64
>Description:
When devel/binutils is installed, users of lang/gcc43 and lang/gcc44 may
use the full functionality of these compilers, e.g. CPU instructions
unsupported by system binutils like -mssse3 -msse4.1 -msse4.2

lang/gcc43 and lang/gcc44 automatically detect devel/binutils because it uses
standard paths.

I suggest setting this option to "on" by default in the future.
>How-To-Repeat:
>Fix:
Index: ports/lang/gcc43/Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/gcc43/Makefile,v
retrieving revision 1.393
diff -u -r1.393 Makefile
--- ports/lang/gcc43/Makefile	22 Jun 2009 20:48:17 -0000	1.393
+++ ports/lang/gcc43/Makefile	9 Jul 2009 08:43:56 -0000
@@ -8,6 +8,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	4.3.4.20090621
+PORTREVISION=	1
 CATEGORIES=	lang java
 MASTER_SITES=	${MASTER_SITE_GCC}
 MASTER_SITE_SUBDIR=	snapshots/${VERSIONSTRING}
@@ -42,8 +43,15 @@
 PATCH_WRKSRC=	${SRCDIR}
 CONFIGURE_SCRIPT=	../${SRCDIR:S/${WRKDIR}\///}/configure
 
+OPTIONS=	BINUTILS	"Use binutils from ports"	off
+
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_BINUTILS)
+BUILD_DEPENDS+=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
+RUN_DEPENDS+=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
+.endif
+
 .if ${ARCH} != i386
 WITHOUT_JAVA=	yes
 .endif
Index: ports/lang/gcc44/Makefile
===================================================================
RCS file: /home/pcvs/ports/lang/gcc44/Makefile,v
retrieving revision 1.390
diff -u -r1.390 Makefile
--- ports/lang/gcc44/Makefile	2 Jul 2009 01:02:21 -0000	1.390
+++ ports/lang/gcc44/Makefile	9 Jul 2009 08:43:56 -0000
@@ -8,6 +8,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	4.4.1.20090630
+PORTREVISION=	1
 CATEGORIES=	lang java
 MASTER_SITES=	${MASTER_SITE_GCC}
 MASTER_SITE_SUBDIR=	snapshots/${VERSIONSTRING}
@@ -42,8 +43,15 @@
 PATCH_WRKSRC=	${SRCDIR}
 CONFIGURE_SCRIPT=	../${SRCDIR:S/${WRKDIR}\///}/configure
 
+OPTIONS=	BINUTILS	"Use binutils from ports"	off
+
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_BINUTILS)
+BUILD_DEPENDS+=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
+RUN_DEPENDS+=	${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
+.endif
+
 .if ${ARCH} != i386
 WITHOUT_JAVA=	yes
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list