Index: Makefile =================================================================== RCS file: /home/pcvs/ports/lang/io/Makefile,v retrieving revision 1.24 diff -u -r1.24 Makefile --- Makefile 16 Aug 2009 21:26:23 -0000 1.24 +++ Makefile 17 Aug 2009 15:24:51 -0000 @@ -35,10 +35,6 @@ .include -.if ${ARCH} == "amd64" -BROKEN= does not link -.endif - post-patch: @cd ${WRKSRC}/addons && for addon in *; do \ if ! ${ECHO_CMD} ${DEFAULT_ADDONS} | ${GREP} $$addon > /dev/null; then \ @@ -51,6 +47,11 @@ @${REINPLACE_CMD} -e '/CC = gcc/ d' \ ${WRKSRC}/libs/basekit/source/simd_cph/test/Makefile @${REINPLACE_CMD} -e '/cp _build\/dll\/.*\/bin/ d' ${WRKSRC}/Makefile +.if ${ARCH} == "amd64" + @${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS = -fPIC|' \ + ${WRKSRC}/Makefile.lib \ + ${WRKSRC}/libs/basekit/Makefile.lib +.endif post-install: ${MKDIR} ${PREFIX}/include/io