From 29a86ed77fefe778dd077f116ef07d395dd3402f Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Mon, 18 Aug 2014 14:28:35 +0000 Subject: net/nmsg: fix build for FreeBSD 8.x PR: 192771 Submitted by: maintainer --- net/nmsg/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/nmsg/Makefile b/net/nmsg/Makefile index f6d81711a93f..e783d5d8bbcf 100644 --- a/net/nmsg/Makefile +++ b/net/nmsg/Makefile @@ -27,6 +27,13 @@ BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \ ${DOCBOOK_XML}:${PORTSDIR}/textproc/docbook-xml \ ${DOCBOOK_XSL_NS}:${PORTSDIR}/textproc/docbook-xsl-ns +# The version of binutils in base does not understand the crc32 +# instructions used in this code on amd64. Use gcc from ports +# to get a more capable version of binutils. +.if (${OSVERSION} < 900000 && ${ARCH} == amd64) +USE_GCC= yes +.endif + ALL_TARGET= all .if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen -- cgit v1.2.3