[Bug 261807] Mk/Uses/cmake.mk: Add cmake:lto option

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 16 21:13:40 BST 2022


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261807

Adriaan de Groot <adridg at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Not Accepted
                 CC|                            |adridg at freebsd.org

--- Comment #8 from Adriaan de Groot <adridg at freebsd.org> ---
I'm going to close this one with "no".

- LTO can (usually? always?) be enabled by passing suitable flags to CMake at
cmake-time (when generating the build system). The suggestion is that cmake:lto
should add those flags.
- LTO should not be an OPTION (according to Max).
- if it **was** an option, then there's no effective way to add cmake:lto to
USES (according to Jan).

I can imagine defining some useful collections of CMake flags in cmake.mk, e.g.
CMAKE_ENABLE_LTO .. are there other collections like that? Then they could be
done at (ports-)make time and a port might have
CMAKE_FLAGS+=${CMAKE_ENABLE_LTO} ; that's less option-fragile at least. But it
would need to be carefully documented.


The topic could be revisited, but then it needs a longer description, suitable
documentation added to cmake.mk, and a suggestion how it would be documented in
the porters handbook. There's too much pointer-chasing for CMake features
as-is.

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


More information about the kde-freebsd mailing list