pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [pkgsrc-2026Q3] pkgsrc/devel/cmake
Module Name: pkgsrc
Committed By: maya
Date: Wed Nov 11 09:06:54 UTC 2026
Added Files:
pkgsrc/devel/cmake [pkgsrc-2026Q3]: hacks.mk
Log Message:
Pullup ticket #7331 - requested by rin
devel/cmake: Build fix (m68k)
Revisions pulled up:
- devel/cmake/hacks.mk 1.1
---
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.2.2 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.2.2
--- /dev/null Wed Nov 11 09:06:54 2026
+++ pkgsrc/devel/cmake/hacks.mk Wed Nov 11 09:06:54 2026
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1.2.2 2026/11/11 09:06:54 maya 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