diff options
author | tijl <tijl@FreeBSD.org> | 2017-02-15 22:48:54 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2017-02-15 22:48:54 +0800 |
commit | d7c69abb660206aeb569f4dc33180e9315f1024d (patch) | |
tree | 702431e67844bb2ec4a36e2bab12cb0a679cfc2c /textproc | |
parent | aad1f15cecaf8cebb9ff353f40f15a3b3ed11dda (diff) | |
download | freebsd-ports-gnome-d7c69abb660206aeb569f4dc33180e9315f1024d.tar.gz freebsd-ports-gnome-d7c69abb660206aeb569f4dc33180e9315f1024d.tar.zst freebsd-ports-gnome-d7c69abb660206aeb569f4dc33180e9315f1024d.zip |
Add -fPIC for all architectures because textproc/py-ltxml links
libltapi12.a and libltstd12.a into a shared library.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ltxml/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/textproc/ltxml/Makefile b/textproc/ltxml/Makefile index fd088472f12d..bbf82cdd02c0 100644 --- a/textproc/ltxml/Makefile +++ b/textproc/ltxml/Makefile @@ -3,6 +3,7 @@ PORTNAME= ltxml PORTVERSION= 1.2.9 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= GENTOO \ ftp://ftp.cogsci.ed.ac.uk/pub/LTXML/ @@ -19,22 +20,20 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/XML USES= gmake perl5 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-zlib=/usr --datadir=${STAGEDIR}${PREFIX}/lib/ltxml12 +# textproc/py-ltxml links libltapi12.a and libltstd12.a into a shared library. +CFLAGS+= -fPIC -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} CFLAGS+= -Wuninitialized -ffast-math -finline-functions \ -fomit-frame-pointer -fexpensive-optimizations -O3 .endif -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -CFLAGS+= -fPIC -.endif - post-patch: @${REINPLACE_CMD} -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \ s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|@prefix@|${STAGEDIR}${PREFIX}|' \ ${WRKSRC}/src/Makefile.sub.in -.include <bsd.port.post.mk> +.include <bsd.port.mk> |