summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2020-09-18 18:20:07 +0000
committerbsiegert <bsiegert@pkgsrc.org>2020-09-18 18:20:07 +0000
commitf9c5b1d9762be8f154b4a1a74cef5ce81ddf2bb8 (patch)
treebe1ac06809f47e5f279553f6654157d517c4e8eb
parent81da8b87e33d4ced0ce43787d68b7b3d398660ed (diff)
downloadpkgsrc-f9c5b1d9762be8f154b4a1a74cef5ce81ddf2bb8.tar.gz
Pullup ticket #6319 - requested by he
converters/wkhtmltopdf: PowerPC build fix Revisions pulled up: - converters/wkhtmltopdf/hacks.mk 1.1 --- Module Name: pkgsrc Committed By: he Date: Tue Sep 8 06:33:47 UTC 2020 Added Files: pkgsrc/converters/wkhtmltopdf: hacks.mk Log Message: On powerpc, build with -mlongcall, to avoid truncated relocations. Build fix only for this arch, so no revision bump.
-rw-r--r--converters/wkhtmltopdf/hacks.mk15
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..57603a266ae
--- /dev/null
+++ b/converters/wkhtmltopdf/hacks.mk
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1.2.2 2020/09/18 18:20:07 bsiegert 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