mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
Add -fPIC for all architectures because textproc/py-ltxml links
libltapi12.a and libltstd12.a into a shared library.
This commit is contained in:
parent
fe7182def8
commit
033e341157
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434166
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user