Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2019 00:52:47 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r495669 - head/games/openbor
Message-ID:  <201903140052.x2E0qlsR080827@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Mar 14 00:52:47 2019
New Revision: 495669
URL: https://svnweb.freebsd.org/changeset/ports/495669

Log:
  games/openbor: unbreak with GCC 4.2 after r490912
  
  source/gamelib/loadimg.o:(.text+0x1ce8): undefined reference to `__builtin_unreachable'
  source/gamelib/loadimg.o:(.text+0x2164): undefined reference to `__builtin_unreachable'
  
  Reported by:	pkg-fallout

Modified:
  head/games/openbor/Makefile   (contents, props changed)

Modified: head/games/openbor/Makefile
==============================================================================
--- head/games/openbor/Makefile	Thu Mar 14 00:07:05 2019	(r495668)
+++ head/games/openbor/Makefile	Thu Mar 14 00:52:47 2019	(r495669)
@@ -89,6 +89,8 @@ post-patch:
 		${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's/\.openbor/.${PKGBASE}/' \
 		${WRKSRC}/sdl/sdlport.c
+	@${REINPLACE_CMD} -e 's/__builtin_unreachable/__unreachable/' \
+		${WRKSRC}/source/gamelib/loadimg.c
 	@${GREP} -Flr 'malloc.h' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
 		's,malloc\.h,stdlib.h,'
 	@${REINPLACE_CMD} -e 's/^function \(.*\) {/\1() {/' \



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