1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix build on amd64/ia64

PR:		ports/74729
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-12-05 18:31:13 +00:00
parent 0adb3d60c6
commit 61eeb92bf8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123251

View File

@ -19,6 +19,12 @@ USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g ; \
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
@ -26,4 +32,4 @@ post-patch:
's|-lkdeprint|$$(LIB_KDEPRINT) $$(LIBPTHREAD)|g' \
${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>
.include <bsd.port.post.mk>