aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/aspell/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/textproc/aspell/Makefile b/textproc/aspell/Makefile
index 0d8174a799ec..405f3c589a51 100644
--- a/textproc/aspell/Makefile
+++ b/textproc/aspell/Makefile
@@ -31,6 +31,11 @@ USE_REINPLACE= yes
MAKE_ARGS= NOPORTDOCS=${NOPORTDOCS}
INSTALLS_SHLIB= yes
+# Does not link without at least -O
+.if !defined(CFLAGS) || ${CFLAGS:M-O*} == ""
+CFLAGS+= -O
+.endif
+
WRKSRC= ${WRKDIR}/aspell-${PORTVERSION} # needed for slave ports / options
DOCSDIR= ${PREFIX}/share/doc/aspell
DATADIR= ${PREFIX}/share/aspell