FreeBSD Bugzilla – Attachment 242226 Details for
Bug 271374
emulators/mame-0.254 fails to build on {arm64,amd64,i386}-14-CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
emulators/mame: fix build on armv7
0001-emulators-mame-fix-build-on-armv7.patch (text/plain), 1.48 KB, created by
Robert Clausecker
on 2023-05-16 23:39:49 UTC
(
hide
)
Description:
emulators/mame: fix build on armv7
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2023-05-16 23:39:49 UTC
Size:
1.48 KB
patch
obsolete
>From 8293a70fe8c80d55beb3575c202c1dfd284fa7c4 Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@FreeBSD.org> >Date: Wed, 17 May 2023 01:36:32 +0200 >Subject: [PATCH] emulators/mame: fix build on armv7 > >Mame fails to link on armv7 due to an address space exhaustion in lld. >As a bandaid, tell lld to not generate symbols. This frees up enough >address space to make mame link. > >PR: 271374 >Approved by: portmgr (build fix blanket) >--- > emulators/mame/Makefile | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile >index aebdb69da8a3..d13f1e2cc8dd 100644 >--- a/emulators/mame/Makefile >+++ b/emulators/mame/Makefile >@@ -84,6 +84,9 @@ MAKE_ENV+= DEBUG="1" \ > OPTIMIZE="0" \ > PROFILER="1" \ > SYMBOLS="1" >+.else >+# avoid address space exhaustion in linker on armv7 >+LDFLAGS+= -s > .endif > > .if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*} >@@ -160,11 +163,11 @@ post-patch: > s| .(ARCH)||g' \ > ${WRKSRC}/makefile \ > ${GENIE}/build/gmake.bsd/genie.make >- @${REINPLACE_CMD} -e 's|gcc|cc|; s|g++|c++|' \ >+ @${REINPLACE_CMD} -e 's|gcc|${CC}|; s|g++|${CXX}|' \ > ${GENIE}/src/tools/gcc.lua \ > ${GENIE}/src/tools/snc.lua \ > ${GENIE}/tests/test_gmake_cpp.lua >- @${REINPLACE_CMD} -e 's|= \"gcc|= \"cc|; s|= \"g++|= \"c++|' \ >+ @${REINPLACE_CMD} -e 's|= \"gcc|= \"${CC}|; s|= \"g++|= \"${CXX}|' \ > -e "s|'CXX =|'#CXX =|; s|'CC =|'#CC =|; s| .(ARCH)| |g" \ > ${GENIE}/src/host/scripts.c > @${GREP} -rl '"png.h"' ${WRKSRC}/src | \ >-- >2.40.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
agh
)
Actions:
View
|
Diff
Attachments on
bug 271374
: 242226 |
242434
|
242488
|
242495
|
242512
|
242514
|
242515