pkgsrc-Changes archive

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

CVS commit: pkgsrc/print/qpdf



Module Name:    pkgsrc
Committed By:   yhardy
Date:           Thu Dec 24 20:29:14 UTC 2020

Added Files:
        pkgsrc/print/qpdf: hacks.mk

Log Message:
print/qpdf: Requires 64-bit atomic operations

This (partially) fixes the build on NetBSD/i386 for i586 class processors
and NetBSD/powerpc.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/print/qpdf/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/print/qpdf/hacks.mk
diff -u /dev/null pkgsrc/print/qpdf/hacks.mk:1.1
--- /dev/null   Thu Dec 24 20:29:14 2020
+++ pkgsrc/print/qpdf/hacks.mk  Thu Dec 24 20:29:14 2020
@@ -0,0 +1,23 @@
+# $NetBSD: hacks.mk,v 1.1 2020/12/24 20:29:14 yhardy Exp $
+
+.if !defined(QPDF_HACKS_MK)
+QPDF_HACKS_MK= defined
+
+# [Tue Dec 15 15:49:14 SAST 2020 : yhardy]
+# On i386 archs libqpdf/QPDF.cc fails to compile because 64-bit atomic
+# operations are needed.  Forcing -march=i586 (or better) avoids that
+# (i[56]86 provide required).
+.if ${MACHINE_ARCH} == "i386"
+PKG_HACKS+=    i386-atomicops
+CXXFLAGS+=     -march=i586
+.endif
+
+# [Tue Dec 15 15:49:14 SAST 2020 : yhardy]
+# On NetBSD/powerpc, we don't have native 8-byte atomics, but qpdf
+# needs it for a global long long counter, so here we need libatomic.
+.if ${MACHINE_ARCH} == "powerpc"
+PKG_HACKS+=     powerpc-libatomic
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
+.endif # QPDF_HACKS_MK



Home | Main Index | Thread Index | Old Index