1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Fix build on 64bit architectures by adding -fPIC to CFLAGS.

Submitted by:	Johan van Selst <johans@stack.nl>
PR:		ports/85089
Tested by:	submitter (amd64), barner (sparc64, i386)
This commit is contained in:
Simon Barner 2005-09-15 13:58:22 +00:00
parent 06b7f64bbd
commit 91ad395280
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=142818

View File

@ -25,9 +25,8 @@ CONFIGURE_ARGS= --with-cn-locale=eucCN
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
BROKEN= "Does not compile on amd64 or ia64 (missing -fPIC)"
.endif
CFLAGS+= -fPIC
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_pic.a`
post-patch:
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \