1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

converters/wkhtmltopdf: fix build on arm64/aarch64

PR:		250952
Submitted by:	rasmus@gal.dk
Reviewed by:	linimon
MFH:		2020Q4
This commit is contained in:
Kurt Jaeger 2020-11-15 10:23:01 +00:00
parent f366582ad7
commit 36cc6cffde
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555188
2 changed files with 12 additions and 1 deletions

View File

@ -11,7 +11,6 @@ COMMENT= Convert HTML (or live webpages) to PDF or image
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= fails to build: error: cast from pointer to smaller type loses information
BROKEN_armv6= fails to build: error: Not supported ARM architecture
BROKEN_armv7= fails to build: error: invalid operand for instruction
BROKEN_mips64= fails to link: undefined reference to __sync_add_and_fetch_4

View File

@ -0,0 +1,12 @@
--- src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h.orig 2020-11-08 17:05:56.503694000 +0100
+++ src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h 2020-11-08 17:06:42.105176000 +0100
@@ -1003,7 +1003,8 @@
|| CPU(SPARC64) \
|| CPU(S390X) \
|| CPU(PPC64) \
- || CPU(MIPS64)
+ || CPU(MIPS64) \
+ || defined(__aarch64__)
#define WTF_USE_JSVALUE64 1
#else
#define WTF_USE_JSVALUE32_64 1