From b3bf597c3ca95acd21e813762a806f5805c6c93c Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Thu, 20 Aug 2015 06:46:33 +0000 Subject: [PATCH] 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 --- games/doomlegacy/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/games/doomlegacy/Makefile b/games/doomlegacy/Makefile index 0e08a5064a51..a7cf971ac43c 100644 --- a/games/doomlegacy/Makefile +++ b/games/doomlegacy/Makefile @@ -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