[Bug 261974] lang/python311: Enable Link Time Optimization (via autoconf)
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 261974] lang/python311: add --enable-lto"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Feb 2022 03:06:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261974
Kubilay Kocak <koobs@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|lang/python311: add |lang/python311: Enable Link
|--enable-lto |Time Optimization (via
| |autoconf)
Keywords| |needs-patch, needs-qa
--- Comment #5 from Kubilay Kocak <koobs@FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #4)
Sounds reasonable. Could we:
- Wrap this in an LTO option, enabled by default, excluded on architectures its
not relevent or ok for.
- Update the patch to include changes for all lang/python* ports that support
it (LTO). I think more than one does.
- Can we get away without the 'CC= environment override', leaving in either:
1) the current check for == cc, or
2) using appropriate ports framework mechanisms to determine whether the
compiler is clang? ie:
if excluding options based on arch is feasible:
if option and correct-compiler
If not:
if option and correct compiler and not bad-arch
Note that while pythons configure checks CC, it also incorrectly detects 'GNU
linker' (based on version string), and the build system is not very robust with
respect to toolchains, and if we can just do the 'is this the right toolchain
for lto' parts in ports, that would be preferable.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.