During the exp-run in PR 201377, it was found that `games/doomlegacy' gives

errors with a recent Clang 3.7.0 snapshot (final linking fails).

This is because the program uses the wrong form of inline function, causing
linking to fail.  This can be fixed easily by using "static inline" instead.

PR:		202498
Submitted by:	dim
This commit is contained in:
Alexey Dokuchaev 2015-08-20 06:46:33 +00:00
parent d3175487d7
commit b3bf597c3c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394834

View File

@ -46,6 +46,9 @@ post-patch: .SILENT
${WRKSRC}/src/d_main.c
# Unbreak against Clang (https://llvm.org/bugs/show_bug.cgi?id=10365)
${REINPLACE_CMD} -e 's,%cc,cc,' ${WRKSRC}/src/m_fixed.h
# Unbreak against Clang 3.7.0
${REINPLACE_CMD} -e '/draw_dir_line(/s,inline,static &,' \
${WRKSRC}/src/m_menu.c
.if ! ${PORT_OPTIONS:MIPX}
${REINPLACE_CMD} -e '/USE_IPX/s|define|undef|' ${WRKSRC}/src/doomdef.h
${REINPLACE_CMD} -e 's| -lipx||' ${WRKSRC}/Makefile