diff options
-rw-r--r-- | lang/gcc/Makefile | 12 | ||||
-rw-r--r-- | lang/gcc46/Makefile | 12 | ||||
-rw-r--r-- | lang/gcc47/Makefile | 12 | ||||
-rw-r--r-- | lang/gcc48/Makefile | 12 |
4 files changed, 44 insertions, 4 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile index 7b994be45d01..5835679bf893 100644 --- a/lang/gcc/Makefile +++ b/lang/gcc/Makefile @@ -8,6 +8,7 @@ PORTNAME= gcc PORTVERSION= 4.6.0.20100828 +PORTREVISION= 1 CATEGORIES= lang java MASTER_SITES= ${MASTER_SITE_GCC} MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING} @@ -43,10 +44,19 @@ MAKE_JOBS_SAFE= yes PATCH_WRKSRC= ${SRCDIR} CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure -OPTIONS= JAVA "Enable the Java frontend (i386 and amd64 only)" on +OPTIONS= LTO "Enable link-time optimizations (LTO)" off \ + JAVA "Enable the Java frontend (i386 and amd64 only)" on .include <bsd.port.pre.mk> +.if defined(WITH_LTO) +LIB_DEPENDS+= elf.0:${PORTSDIR}/devel/libelf +CONFIGURE_ARGS+= --enable-lto=yes \ + --with-libelf=${LOCALBASE} +.else +CONFIGURE_ARGS+= --enable-lto=no +.endif + .if ${ARCH} != i386 && ${ARCH} != amd64 WITHOUT_JAVA= yes .endif diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile index 7b994be45d01..5835679bf893 100644 --- a/lang/gcc46/Makefile +++ b/lang/gcc46/Makefile @@ -8,6 +8,7 @@ PORTNAME= gcc PORTVERSION= 4.6.0.20100828 +PORTREVISION= 1 CATEGORIES= lang java MASTER_SITES= ${MASTER_SITE_GCC} MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING} @@ -43,10 +44,19 @@ MAKE_JOBS_SAFE= yes PATCH_WRKSRC= ${SRCDIR} CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure -OPTIONS= JAVA "Enable the Java frontend (i386 and amd64 only)" on +OPTIONS= LTO "Enable link-time optimizations (LTO)" off \ + JAVA "Enable the Java frontend (i386 and amd64 only)" on .include <bsd.port.pre.mk> +.if defined(WITH_LTO) +LIB_DEPENDS+= elf.0:${PORTSDIR}/devel/libelf +CONFIGURE_ARGS+= --enable-lto=yes \ + --with-libelf=${LOCALBASE} +.else +CONFIGURE_ARGS+= --enable-lto=no +.endif + .if ${ARCH} != i386 && ${ARCH} != amd64 WITHOUT_JAVA= yes .endif diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile index 7b994be45d01..5835679bf893 100644 --- a/lang/gcc47/Makefile +++ b/lang/gcc47/Makefile @@ -8,6 +8,7 @@ PORTNAME= gcc PORTVERSION= 4.6.0.20100828 +PORTREVISION= 1 CATEGORIES= lang java MASTER_SITES= ${MASTER_SITE_GCC} MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING} @@ -43,10 +44,19 @@ MAKE_JOBS_SAFE= yes PATCH_WRKSRC= ${SRCDIR} CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure -OPTIONS= JAVA "Enable the Java frontend (i386 and amd64 only)" on +OPTIONS= LTO "Enable link-time optimizations (LTO)" off \ + JAVA "Enable the Java frontend (i386 and amd64 only)" on .include <bsd.port.pre.mk> +.if defined(WITH_LTO) +LIB_DEPENDS+= elf.0:${PORTSDIR}/devel/libelf +CONFIGURE_ARGS+= --enable-lto=yes \ + --with-libelf=${LOCALBASE} +.else +CONFIGURE_ARGS+= --enable-lto=no +.endif + .if ${ARCH} != i386 && ${ARCH} != amd64 WITHOUT_JAVA= yes .endif diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile index 7b994be45d01..5835679bf893 100644 --- a/lang/gcc48/Makefile +++ b/lang/gcc48/Makefile @@ -8,6 +8,7 @@ PORTNAME= gcc PORTVERSION= 4.6.0.20100828 +PORTREVISION= 1 CATEGORIES= lang java MASTER_SITES= ${MASTER_SITE_GCC} MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING} @@ -43,10 +44,19 @@ MAKE_JOBS_SAFE= yes PATCH_WRKSRC= ${SRCDIR} CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure -OPTIONS= JAVA "Enable the Java frontend (i386 and amd64 only)" on +OPTIONS= LTO "Enable link-time optimizations (LTO)" off \ + JAVA "Enable the Java frontend (i386 and amd64 only)" on .include <bsd.port.pre.mk> +.if defined(WITH_LTO) +LIB_DEPENDS+= elf.0:${PORTSDIR}/devel/libelf +CONFIGURE_ARGS+= --enable-lto=yes \ + --with-libelf=${LOCALBASE} +.else +CONFIGURE_ARGS+= --enable-lto=no +.endif + .if ${ARCH} != i386 && ${ARCH} != amd64 WITHOUT_JAVA= yes .endif |