aboutsummaryrefslogtreecommitdiff
path: root/graphics/libboard/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libboard/Makefile')
-rw-r--r--graphics/libboard/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/libboard/Makefile b/graphics/libboard/Makefile
index 83807026a377..52ecace7353d 100644
--- a/graphics/libboard/Makefile
+++ b/graphics/libboard/Makefile
@@ -22,6 +22,12 @@ USE_LDCONFIG= yes
PORTDOCS= *
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != i386
+CFLAGS+= -fPIC
+.endif
+
pre-configure:
${REINPLACE_CMD} -e 's|-O3|${CXXFLAGS}|' ${WRKSRC}/${CONFIGURE_SCRIPT}
@@ -40,4 +46,4 @@ regression-test:
.endfor
${LS} -l ${WRKDIR}/arithm* ${WRKDIR}/draw*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>