diff options
author | barner <barner@FreeBSD.org> | 2005-09-15 13:58:22 +0000 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2005-09-15 13:58:22 +0000 |
commit | 830ea4600ce6babfb8189b4c6fec5140504dcfaf (patch) | |
tree | 6f493d0778c8aa769df3db3442bdc64187b92380 | |
parent | 0c99c7d6af86f847ae40d99ec3d2d3f5ffea4e5d (diff) | |
download | FreeBSD-ports-830ea4600ce6babfb8189b4c6fec5140504dcfaf.zip FreeBSD-ports-830ea4600ce6babfb8189b4c6fec5140504dcfaf.tar.gz |
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)
-rw-r--r-- | chinese/xsim/Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chinese/xsim/Makefile b/chinese/xsim/Makefile index 94bddda..087d2d0 100644 --- a/chinese/xsim/Makefile +++ b/chinese/xsim/Makefile @@ -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>,' \ |