pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/libreoffice



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Tue Apr  9 00:19:29 UTC 2024

Added Files:
        pkgsrc/misc/libreoffice: hacks.mk

Log Message:
libreoffice: add build fix for NetBSD/aarch64

For aarch64 on NetBSD we apply -mno-outline-atomics as one way of
getting around linking issues that otherwise occur with GCC from
pkgsrc. XXX when -current moves to GCC 12, this should be revisited.
Issue reported and fix supplied and tested by Paul Ripke on
pkgsrc-users. (Same approach already used elsewhere in pkgsrc, e.g.,
graphics/exiv2.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/libreoffice/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/misc/libreoffice/hacks.mk
diff -u /dev/null pkgsrc/misc/libreoffice/hacks.mk:1.1
--- /dev/null   Tue Apr  9 00:19:29 2024
+++ pkgsrc/misc/libreoffice/hacks.mk    Tue Apr  9 00:19:29 2024
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2024/04/09 00:19:29 gutteridge Exp $
+
+.if !defined(LIBREOFFICE_HACKS_MK)
+LIBREOFFICE_HACKS_MK=  defined
+
+# For aarch64 on NetBSD we apply -mno-outline-atomics as one way of
+# getting around linking issues that otherwise occur with GCC from
+# pkgsrc. XXX when -current moves to GCC 12, this should be revisited.
+.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_PLATFORM:MNetBSD-*-aarch64*}
+CXXFLAGS.NetBSD+=      -mno-outline-atomics
+PKG_HACKS+=            gcc-no-outline-atomics
+.endif
+
+.endif # LIBREOFFICE_HACKS_MK



Home | Main Index | Thread Index | Old Index