aboutsummaryrefslogtreecommitdiffstats
path: root/lang/io
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2009-08-18 02:28:24 +0800
committergahr <gahr@FreeBSD.org>2009-08-18 02:28:24 +0800
commitb3c2bad104ebb4929ceba753486f64f850d29812 (patch)
tree46f01262e09cfc67908f6762efcea12b76c904e4 /lang/io
parentbb672ef3b40b30890203a9423d6f78b2e50f3ec2 (diff)
downloadfreebsd-ports-gnome-b3c2bad104ebb4929ceba753486f64f850d29812.tar.gz
freebsd-ports-gnome-b3c2bad104ebb4929ceba753486f64f850d29812.tar.zst
freebsd-ports-gnome-b3c2bad104ebb4929ceba753486f64f850d29812.zip
- Fix build on amd64
Tested by: miwi Many thanks to: miwi
Diffstat (limited to 'lang/io')
-rw-r--r--lang/io/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/lang/io/Makefile b/lang/io/Makefile
index fd6921ae5f73..f1ab4ca587f3 100644
--- a/lang/io/Makefile
+++ b/lang/io/Makefile
@@ -35,10 +35,6 @@ PORTEXAMPLES= *
.include <bsd.port.pre.mk>
-.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 @@ post-patch:
@${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