ports/lang/python311/files/patch-configure
Piotr Kubaj 9a31e1b6d3 lang/python3*: add LTO option and enable by default everywhere except powerpc64 and riscv64
PR:	261974
Approved by:	python (koobs got his commit bit revoked during review process)
2022-03-09 17:30:00 +00:00

11 lines
247 B
Text

--- configure.orig 2022-02-23 19:32:58 UTC
+++ configure
@@ -7244,7 +7244,7 @@ fi
if test "$Py_LTO" = 'true' ; then
case $CC in
- *clang*)
+ *clang*|cc)
LDFLAGS_NOLTO="-fno-lto"
if test -n "$ac_tool_prefix"; then