Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2015 06:46:34 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r394834 - head/games/doomlegacy
Message-ID:  <201508200646.t7K6kY5q080582@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508200646.t7K6kY5q080582>