Date: Thu, 9 Jul 2009 10:49:57 +0200 (CEST) From: Martin Matuska <mm@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/136607: [PATCH] lang/gcc43 lang/gcc44: add OPTION for devel/binutils Message-ID: <20090709084957.D92BD2E4DA@mail.vx.sk> Resent-Message-ID: <200907090900.n69909aE029051@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090709084957.D92BD2E4DA>