Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/wkhtmltopdf On powerpc, build with -mlongca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1af94867e356
branches:  trunk
changeset: 438673:1af94867e356
user:      he <he%pkgsrc.org@localhost>
date:      Tue Sep 08 06:33:47 2020 +0000

description:
On powerpc, build with -mlongcall, to avoid truncated relocations.
Build fix only for this arch, so no revision bump.

diffstat:

 converters/wkhtmltopdf/hacks.mk |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 6c47b73ff6b6 -r 1af94867e356 converters/wkhtmltopdf/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/wkhtmltopdf/hacks.mk   Tue Sep 08 06:33:47 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index