aboutsummaryrefslogtreecommitdiff
path: root/comms/libfec
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2017-02-09 18:53:12 +0000
committerMark Linimon <linimon@FreeBSD.org>2017-02-09 18:53:12 +0000
commit9c19df593a82f27525bddda97946febd7e1fbb3e (patch)
treebe5801b4b385a04c75cc1baf3b06a46cc4f893e5 /comms/libfec
parent94cfddd88b5504163425ef7d62dc9066c0967772 (diff)
downloadports-9c19df593a82f27525bddda97946febd7e1fbb3e.tar.gz
ports-9c19df593a82f27525bddda97946febd7e1fbb3e.zip
Add -fPIC to various ports to enable them to build on armv6.
Approved by: portmgr (tier-2 blanket)
Notes
Notes: svn path=/head/; revision=433767
Diffstat (limited to 'comms/libfec')
-rw-r--r--comms/libfec/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/comms/libfec/Makefile b/comms/libfec/Makefile
index 6f41d8cb07bc..6e5e198afc07 100644
--- a/comms/libfec/Makefile
+++ b/comms/libfec/Makefile
@@ -26,11 +26,8 @@ PLIST_FILES= include/fec.h \
man/man3/rs.3.gz \
man/man3/simd-viterbi.3.gz
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "amd64"
-CFLAGS+= -fPIC
-.endif
+CFLAGS_aarch64= -fPIC
+CFLAGS_amd64= -fPIC
post-patch:
@${CP} ${FILESDIR}/cpu_mode.c ${WRKSRC}
@@ -46,4 +43,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/${_man} ${STAGEDIR}${MAN3PREFIX}/man/man3
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>