[Bug 261974] lang/python311: add --enable-lto

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 15 Feb 2022 17:10:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261974

            Bug ID: 261974
           Summary: lang/python311: add --enable-lto
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

Off for riscv64 and powerpc64.

configure.ac checks $CC, so we need to set it to clang if $CC == cc.
LD takes around 300MB for linking so it should be ok to enable it even for 32
bit architectures.

This patch should also be merged to older Python. At least 3.10 and 3.9 should
build with LTO. It would be nice if it's done before 3.9 is made the default.

-- 
You are receiving this mail because:
You are the assignee for the bug.