pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/cmake
Module Name: pkgsrc
Committed By: rin
Date: Fri Nov 6 10:28:20 UTC 2026
Added Files:
pkgsrc/devel/cmake: hacks.mk
Log Message:
devel/cmake: Apply opt:-O2:-Os for GCC >= 14 on NetBSD/m68k
As a workaround for
PR toolchain/60970: GCC/m68k 14.4 miscompiles devel/cmake from pkgsrc-2026Q3
With this hack, generated package can build devel/re2c at least.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/cmake/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/cmake/hacks.mk
diff -u /dev/null pkgsrc/devel/cmake/hacks.mk:1.1
--- /dev/null Fri Nov 6 10:28:20 2026
+++ pkgsrc/devel/cmake/hacks.mk Fri Nov 6 10:28:20 2026
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2026/11/06 10:28:20 rin Exp $
+
+.if !defined(CMAKE_HACKS_MK)
+CMAKE_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+# On NetBSD/m68k, GCC 14 optimisation produces segmentation faulting
+# cmake binary. See PR toolchain/60970 for more details.
+.if ${MACHINE_PLATFORM:MNetBSD-*-m68k} && ${CC_VERSION:Mgcc-1[4-9].*}
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= opt:-O2:-Os
+.endif
+
+.endif # CMAKE_HACKS_MK
Home |
Main Index |
Thread Index |
Old Index