diff options
author | kwm <kwm@FreeBSD.org> | 2010-06-14 16:18:20 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2010-06-14 16:18:20 +0800 |
commit | ceec96988f0d311806605a4a96e38c19810b4a87 (patch) | |
tree | 7e319f0d8dffd0effe9a6239e440eb2b0803edb9 /www | |
parent | 50cd4201c39e270b46c2fc58471d4e43c53bda7a (diff) | |
download | freebsd-ports-gnome-ceec96988f0d311806605a4a96e38c19810b4a87.tar.gz freebsd-ports-gnome-ceec96988f0d311806605a4a96e38c19810b4a87.tar.zst freebsd-ports-gnome-ceec96988f0d311806605a4a96e38c19810b4a87.zip |
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@
Diffstat (limited to 'www')
-rw-r--r-- | www/webkit-gtk2/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/webkit-gtk2/Makefile b/www/webkit-gtk2/Makefile index ba8cd89fe588..6768c633c7df 100644 --- a/www/webkit-gtk2/Makefile +++ b/www/webkit-gtk2/Makefile @@ -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 |