summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include/lto.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/distro/include/lto.inc')
-rw-r--r--meta/conf/distro/include/lto.inc44
1 files changed, 23 insertions, 21 deletions
diff --git a/meta/conf/distro/include/lto.inc b/meta/conf/distro/include/lto.inc
index 20895ad40d..b8193725a1 100644
--- a/meta/conf/distro/include/lto.inc
+++ b/meta/conf/distro/include/lto.inc
@@ -1,32 +1,34 @@
1# To enable LTO, add following in local.conf 1# To enable LTO, add following in local.conf
2# require conf/distro/include/lto.inc 2# require conf/distro/include/lto.inc
3# DISTRO_FEATURES_append = " lto" 3# DISTRO_FEATURES:append = " lto"
4# 4#
5 5
6# Disable LTO for following packages 6# Disable LTO for following packages
7LTO_pn-glibc = "" 7LTO:pn-glibc = ""
8LTO_pn-gcc-runtime = "" 8LTO:pn-gcc-runtime = ""
9LTO_pn-libgcc-initial = "" 9LTO:pn-libgcc-initial = ""
10LTO_pn-libgcc = "" 10LTO:pn-libgcc = ""
11LTO_pn-libaio = "" 11LTO:pn-libaio = ""
12LTO_pn-libpam = "" 12LTO:pn-libpam = ""
13LTO_pn-elfutils = "" 13LTO:pn-elfutils = ""
14LTO_pn-perl = "" 14LTO:pn-perl = ""
15LTO_pn-busybox = "" 15LTO:pn-busybox = ""
16LTO_pn-libxcrypt = "" 16LTO:pn-libxcrypt = ""
17LTO_pn-curl = "" 17LTO:pn-curl = ""
18LTO_pn-libcap = "" 18LTO:pn-libcap = ""
19LTO_pn-libproxy = "" 19LTO:pn-libproxy = ""
20LTO_pn-libbsd = "" 20LTO:pn-libbsd = ""
21LTO_pn-perf = "" 21LTO:pn-perf = ""
22# webkit is not linking properly with LTO, disable until next time 22# webkit is not linking properly with LTO, disable until next time
23LTO_pn-webkitgtk = "" 23LTO:pn-webkitgtk = ""
24LTO_pn-xserver-xorg = "" 24LTO:pn-xserver-xorg = ""
25LTO:pn-grub = ""
26LTO:pn-grub-efi = ""
25 27
26# Custom LTO flags 28# Custom LTO flags
27# disable partitioning/streaming algorithm since its uses ASM 29# disable partitioning/streaming algorithm since its uses ASM
28# constructs not compatible with lto 30# constructs not compatible with lto
29LTOEXTRA_pn-alsa-lib = "-flto-partition=none" 31LTOEXTRA:pn-alsa-lib = "-flto-partition=none"
30 32
31LTOEXTRA ?= "" 33LTOEXTRA ?= ""
32 34
@@ -43,7 +45,7 @@ LTOEXTRA ?= ""
43# code from .a files to linker 45# code from .a files to linker
44LTO ?= "-flto -ffat-lto-objects -fuse-linker-plugin ${LTOEXTRA}" 46LTO ?= "-flto -ffat-lto-objects -fuse-linker-plugin ${LTOEXTRA}"
45 47
46SELECTED_OPTIMIZATION_append = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}" 48SELECTED_OPTIMIZATION:append = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}"
47TARGET_LDFLAGS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}" 49TARGET_LDFLAGS:append:class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}"
48 50
49SELECTED_OPTIMIZATION[vardeps] += "LTO LTOEXTRA" 51SELECTED_OPTIMIZATION[vardeps] += "LTO LTOEXTRA"