pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libatomic



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Tue Oct 17 02:01:43 UTC 2023

Added Files:
        pkgsrc/devel/libatomic: hacks.mk

Log Message:
libatomic: fix aarch64 builds on NetBSD 9.x

For aarch64, GCC expects a recent version of itself that accepts
-mno-outline-atomics. Some packages pull in libatomic for aarch64,
e.g., net/haproxy for __atomic_compare_exchange_16. (haproxy was
compile tested after applying this fix.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libatomic/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/devel/libatomic/hacks.mk
diff -u /dev/null pkgsrc/devel/libatomic/hacks.mk:1.1
--- /dev/null   Tue Oct 17 02:01:43 2023
+++ pkgsrc/devel/libatomic/hacks.mk     Tue Oct 17 02:01:43 2023
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1 2023/10/17 02:01:43 gutteridge Exp $
+
+.if !defined(LIBATOMIC_HACKS_MK)
+LIBATOMIC_HACKS_MK=    defined
+
+# For aarch64, GCC expects a recent version of itself that accepts
+# -mno-outline-atomics.
+.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_PLATFORM:MNetBSD-*-aarch64*} && ${OPSYS_VERSION} < 099982
+GCC_REQD+=     10
+PKG_HACKS+=    gcc-no-outline-atomics-required
+.endif
+
+.endif # LIBATOMIC_HACKS_MK



Home | Main Index | Thread Index | Old Index