- Fix build with gcc-3.4 by increasing optimization level to -O2

This is a workaround for what looks like preprocessor bug in gcc

Clue provided by:	bland
This commit is contained in:
Pav Lucistnik 2004-08-15 14:49:36 +00:00
parent 37f8349dd4
commit 3ea9ba4ea9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116262

View File

@ -54,6 +54,12 @@ pre-configure:
.include <bsd.port.pre.mk>
# XXX due to gcc-3.4 (20040706) bug in preprocessing of inline functions,
# this needs at least -O2 to compile. Fails with -O
.if ${OSVERSION} >= 502126
CFLAGS+= -O2
.endif
# hack to make ogle work with liba52 + djbfft
.if exists(${LOCALBASE}/lib/liba52.la)
LIBA52_DEP_LIBS!= ${GREP} dependency_libs ${LOCALBASE}/lib/liba52.la | ${CUT} -d \' -f 2