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:
parent
06b7f64bbd
commit
91ad395280
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=142818
@ -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>,' \
|
||||
|
Loading…
Reference in New Issue
Block a user