svn commit: r394834 - head/games/doomlegacy

Alexey Dokuchaev danfe at FreeBSD.org
Thu Aug 20 06:46:34 UTC 2015


Author: danfe
Date: Thu Aug 20 06:46:33 2015
New Revision: 394834
URL: https://svnweb.freebsd.org/changeset/ports/394834

Log:
  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

Modified:
  head/games/doomlegacy/Makefile

Modified: head/games/doomlegacy/Makefile
==============================================================================
--- head/games/doomlegacy/Makefile	Thu Aug 20 06:46:31 2015	(r394833)
+++ head/games/doomlegacy/Makefile	Thu Aug 20 06:46:33 2015	(r394834)
@@ -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


More information about the svn-ports-head mailing list