aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-ltxml
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2017-02-10 02:53:12 +0800
committerlinimon <linimon@FreeBSD.org>2017-02-10 02:53:12 +0800
commitd986308550a19d058cd7490871a870e705d8365c (patch)
treebe5801b4b385a04c75cc1baf3b06a46cc4f893e5 /textproc/py-ltxml
parentb9168d5cd97c323a0847a91c6972bca6948a21a0 (diff)
downloadfreebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.tar.gz
freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.tar.zst
freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.zip
Add -fPIC to various ports to enable them to build on armv6.
Approved by: portmgr (tier-2 blanket)
Diffstat (limited to 'textproc/py-ltxml')
-rw-r--r--textproc/py-ltxml/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/textproc/py-ltxml/Makefile b/textproc/py-ltxml/Makefile
index a0591dbe584f..75ff8cc7d53f 100644
--- a/textproc/py-ltxml/Makefile
+++ b/textproc/py-ltxml/Makefile
@@ -21,6 +21,9 @@ USES= python
USE_PYTHON= distutils autoplist
USE_LDCONFIG= yes
+CFLAGS_aarch64= -fPIC
+CFLAGS_amd64= -fPIC
+
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= 00README
@@ -30,10 +33,6 @@ OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
-CFLAGS+= -fPIC
-.endif
-
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/PyLTXML/LTXMLinter.so