aboutsummaryrefslogtreecommitdiffstats
path: root/devel/binutils
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-09-01 05:15:04 +0800
committerantoine <antoine@FreeBSD.org>2016-09-01 05:15:04 +0800
commit1f3e2e2afe979e82e6ea554270538848e23248ed (patch)
tree16fdf56badca7a39eac09ba93f5ca4473b126197 /devel/binutils
parente3e6c81c71b982c3c26e6c41d87b4ffed14ba192 (diff)
downloadfreebsd-ports-graphics-1f3e2e2afe979e82e6ea554270538848e23248ed.tar.gz
freebsd-ports-graphics-1f3e2e2afe979e82e6ea554270538848e23248ed.tar.zst
freebsd-ports-graphics-1f3e2e2afe979e82e6ea554270538848e23248ed.zip
Do not use .init_array/.fini_array sections on FreeBSD 9
This should fix build failures of llvm37 and a few others PR: 212249 With hat: portmgr
Diffstat (limited to 'devel/binutils')
-rw-r--r--devel/binutils/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile
index 31dc38671c3..ac8beffd6d6 100644
--- a/devel/binutils/Makefile
+++ b/devel/binutils/Makefile
@@ -3,7 +3,7 @@
PORTNAME= binutils
PORTVERSION= 2.27
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH?= 1
CATEGORIES?= devel
MASTER_SITES= SOURCEWARE/binutils/releases
@@ -82,6 +82,10 @@ PLIST_SUB+= GOLD=""
PLIST_SUB+= GOLD="@comment "
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
+CONFIGURE_ARGS+= --disable-initfini-array
+.endif
+
.if ${ARCH} == "amd64"
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
.else