LTO: Add -flto to LDFLAGS for clang
GCC automatically detects when it is linking LTO objects, but clang does not. Add -flto to LDFLAGS to make this work for clang too. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
3710960090
commit
26ee6ff6ad
1 changed files with 1 additions and 0 deletions
|
@ -33,5 +33,6 @@ buildenv_lto() {
|
|||
if check_option "lto" "y"; then
|
||||
CFLAGS+=" -flto"
|
||||
CXXFLAGS+=" -flto"
|
||||
LDFLAGS+=" -flto"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue