place options at a more consistent place

This commit is contained in:
Sascha Kuehndel (InuSasha) 2018-05-07 21:55:07 +02:00
parent 9c03f42b43
commit b7b1a67723
No known key found for this signature in database
GPG Key ID: 15FED89617B88D1B
2 changed files with 6 additions and 3 deletions

View File

@ -5,9 +5,9 @@ setup_toolchain() {
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_LTO"
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_LTO"
else
TARGET_CFLAGS+=" -fno-lto"
TARGET_CXXFLAGS+=" -fno-lto"
TARGET_LDFLAGS+=" -fno-lto"
TARGET_CFLAGS+=" $CFLAGS_OPTIM_NOLTO"
TARGET_CXXFLAGS+=" $CXXFLAGS_OPTIM_NOLTO"
TARGET_LDFLAGS+=" $LDFLAGS_OPTIM_NOLTO"
fi
# gold flag

View File

@ -35,6 +35,9 @@ HOST_CXXFLAGS="$HOST_CXXFLAGS -Wno-format-security"
CFLAGS_OPTIM_LTO="-flto -ffat-lto-objects"
CXXFLAGS_OPTIM_LTO="-flto -ffat-lto-objects"
LDFLAGS_OPTIM_LTO="-fuse-linker-plugin -flto"
CFLAGS_OPTIM_NOLTO="-fno-lto"
CXXFLAGS_OPTIM_NOLTO="-fno-lto"
LDFLAGS_OPTIM_NOLTO="-fno-lto"
# gold flags
LDFLAGS_OPTIM_GOLD="-fuse-ld=gold"