pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [pkgsrc-2023Q3] pkgsrc/devel/libatomic
Module Name: pkgsrc
Committed By: spz
Date: Sat Nov 4 13:26:56 UTC 2023
Added Files:
pkgsrc/devel/libatomic [pkgsrc-2023Q3]: hacks.mk
Log Message:
Pullup ticket #6818 - requested by gutteridge
devel/libatomic; build fix
Revisions pulled up:
- devel/libatomic/hacks.mk 1.1
-------------------------------------------------------------------
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
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1.2.2 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.2.2
--- /dev/null Sat Nov 4 13:26:56 2023
+++ pkgsrc/devel/libatomic/hacks.mk Sat Nov 4 13:26:56 2023
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1.2.2 2023/11/04 13:26:56 spz 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