svn commit: r495669 - head/games/openbor
Jan Beich
jbeich at FreeBSD.org
Thu Mar 14 00:52:48 UTC 2019
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() {/' \
More information about the svn-ports-head
mailing list