diff options
author | he <he@pkgsrc.org> | 2020-09-08 06:33:47 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2020-09-08 06:33:47 +0000 |
commit | 439a2e3d822161821177d3bfa21335c39348ac29 (patch) | |
tree | 9c4176264372360fdd716d08be804fe6d0c7fb95 /converters | |
parent | a6dc07a77442a4e36a90c199fdc93657af6a5411 (diff) | |
download | pkgsrc-439a2e3d822161821177d3bfa21335c39348ac29.tar.gz |
On powerpc, build with -mlongcall, to avoid truncated relocations.
Build fix only for this arch, so no revision bump.
Diffstat (limited to 'converters')
-rw-r--r-- | converters/wkhtmltopdf/hacks.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/converters/wkhtmltopdf/hacks.mk b/converters/wkhtmltopdf/hacks.mk new file mode 100644 index 00000000000..010edd01b52 --- /dev/null +++ b/converters/wkhtmltopdf/hacks.mk @@ -0,0 +1,15 @@ +# $NetBSD: hacks.mk,v 1.1 2020/09/08 06:33:47 he Exp $ + +.if !defined(WKHTMLTOPDF_HACKS_MK) +WKHTMLTOPDF_HACKS_MK= defined + +# [Mon Sep 7 21:12:45 CEST 2020 : he] +# On NetBSD/powerpc, we get relocation truncated to fit: R_PPC_PLTREL24 +# with default build options. +.if !empty(MACHINE_ARCH:Mpowerpc*) +CFLAGS+= -mlongcall +CXXFLAGS+= -mlongcall +PKG_HACKS+= powerpc-longcall +.endif + +.endif # WKHTMLTOPDF_HACKS_MK |