pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/exiv2



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Thu Dec  7 00:42:47 UTC 2023

Added Files:
        pkgsrc/graphics/exiv2: hacks.mk

Log Message:
exiv2: fix builds for aarch64 on NetBSD 9.x

For aarch64, older NetBSD releases will end up pulling in GCC 10 to
build this, because of the C++ <filesystem> requirement. We apply
-mno-outline-atomics as one way of getting around linking issues that
otherwise occur.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.4 pkgsrc/graphics/exiv2/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/graphics/exiv2/hacks.mk
diff -u /dev/null pkgsrc/graphics/exiv2/hacks.mk:1.4
--- /dev/null   Thu Dec  7 00:42:47 2023
+++ pkgsrc/graphics/exiv2/hacks.mk      Thu Dec  7 00:42:47 2023
@@ -0,0 +1,16 @@
+# $NetBSD: hacks.mk,v 1.4 2023/12/07 00:42:47 gutteridge Exp $
+
+.if !defined(EXIV2_HACKS_MK)
+EXIV2_HACKS_MK=        defined
+
+# For aarch64, older NetBSD releases will end up pulling in GCC 10 to
+# build this, because of the C++ <filesystem> requirement. We apply
+# -mno-outline-atomics as one way of getting around linking issues that
+# otherwise occur.
+.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_PLATFORM:MNetBSD-*-aarch64*} && ${OPSYS_VERSION} < 099982
+CXXFLAGS.NetBSD+=      -mno-outline-atomics
+PKG_HACKS+=            gcc-no-outline-atomics
+.endif
+
+.endif # EXIV2_HACKS_MK



Home | Main Index | Thread Index | Old Index