diff options
author | Gerald Pfeifer <gerald@FreeBSD.org> | 2010-09-04 23:57:26 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@FreeBSD.org> | 2010-09-04 23:57:26 +0000 |
commit | 7c4a6df8e8e5e6cf26efb7ed99c30c0df83404b9 (patch) | |
tree | c40991fc23976f81a3bce4af93a20418f2953131 /lang/gcc48 | |
parent | b481ce4c7c510db1fe5e7c70a133c3010b708d46 (diff) |
Notes
Diffstat (limited to 'lang/gcc48')
-rw-r--r-- | lang/gcc48/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
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 |