msys2 / msys2-pacman

A friendly fork of https://gitlab.archlinux.org/pacman/pacman
GNU General Public License v2.0
21 stars 12 forks source link

Fix building staticlibs with LTO #9

Closed MehdiChinoune closed 2 years ago

MehdiChinoune commented 2 years ago

Unless -ffat-lto-objects get passed to the compiler, It only generates LTO bytecode.

see: https://wiki.ubuntu.com/ToolChain/LTO : Implementation https://fedoraproject.org/wiki/Changes/LTOBuildImprovements https://en.opensuse.org/openSUSE:LTO

lazka commented 2 years ago

lgtm