mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
- 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:
parent
37f8349dd4
commit
3ea9ba4ea9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116262
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user