mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Fix build on powerpc64.
The powerpc64 ABI uses a table of contents structure holding a maximum of 65,000 elements per library, which GTK2-webkit overflows by default. Binutils 2.15 is incapable of rectifying this with several default optimizations turned on, resulting in webkit failing to link on this platform. Reduce the size of the TOC to fit within its bounds by adding -mminimal-toc to cflags on powerpc64. PR: ports/147725 Submitted by: nwhitehorn@
This commit is contained in:
parent
d9dc636819
commit
8fe91429b3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256504
@ -88,6 +88,10 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-JavaScriptCore_yarr_RegexJIT.h \
|
||||
BROKEN= does not compile on 6.X
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == powerpc64
|
||||
CFLAGS+= -mminimal-toc
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
|
||||
${WRKSRC}/WebCore/plugins/PluginDatabase.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user