Download raw body.
python fix for armv7 (and potentially powerpc)
Selectively enable LTO depending on platform, this fixes the build for me
on armv7.
OK?
I also slipped this into the 7.8-release build for armv7, OK to commit to
branch?
Index: lang/python/Makefile.inc
===================================================================
RCS file: /cvs/openbsd/ports/lang/python/Makefile.inc,v
diff -u -p -u -p -r1.168 Makefile.inc
--- lang/python/Makefile.inc 31 Jan 2025 12:46:51 -0000 1.168
+++ lang/python/Makefile.inc 21 Oct 2025 08:33:03 -0000
@@ -129,13 +129,15 @@ CONFIGURE_ARGS += --with-fpectl \
.else
CONFIGURE_ARGS += --enable-loadable-sqlite-extensions
. if ${PROPERTIES:Mlld}
-CONFIGURE_ARGS += --with-lto
. if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "powerpc"
# On armv7, clang errors out due to lack of memory.
# On powerpc, the python binary would crash by "Segmentation fault".
# XXX lld from llvm-16 errors out with:
# ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '__profd_isdigit'; recompile with -fPIC
#CONFIGURE_ARGS += --enable-optimizations
+CONFIGURE_ARGS += --with-lto
+. else # arm powerpc
+CONFIGURE_ARGS += --with-lto=no
. endif
. endif
TEST_IS_INTERACTIVE = Yes
--
It has been said that man is a rational animal. All my life I have
been searching for evidence which could support this.
-- Bertrand Russell
python fix for armv7 (and potentially powerpc)