svn commit: r495679 - branches/2019Q1/games/openbor
Jan Beich
jbeich at FreeBSD.org
Thu Mar 14 00:54:39 UTC 2019
Author: jbeich
Date: Thu Mar 14 00:54:38 2019
New Revision: 495679
URL: https://svnweb.freebsd.org/changeset/ports/495679
Log:
MFH: r494760 r495669
games/openbor: unbreak with GCC 4.2
cc1: error: unrecognized command line option "-Wno-unused-result"
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
Approved by: ports-secteam blanket
Modified:
branches/2019Q1/games/openbor/Makefile
Directory Properties:
branches/2019Q1/ (props changed)
Modified: branches/2019Q1/games/openbor/Makefile
==============================================================================
--- branches/2019Q1/games/openbor/Makefile Thu Mar 14 00:53:54 2019 (r495678)
+++ branches/2019Q1/games/openbor/Makefile Thu Mar 14 00:54:38 2019 (r495679)
@@ -81,6 +81,7 @@ post-patch:
@${REINPLACE_CMD} -e 's/ -O[0-9]//; s/ -g//; s/ -Werror//' \
-e 's/ -fomit-frame-pointer//' \
-e 's/ -freorder-blocks//' \
+ -e 's/ -Wno-unused-result//' \
-e 's/ -Wl,-rpath,$$(LIBRARIES)//' \
-e '/echo/!s/ @/ /' \
-e 's/@echo/@$$(ECHO)/' \
@@ -88,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-branches
mailing list