package/*: use BR2_ENABLE_LTO to enable LTO instead of BR2_GCC_ENABLE_LTO

The BR2_GCC_ENABLE_LTO controls whether or not LTO is available in the
(internal) toolchain - it shouldn't be used to control whether packages
are built with LTO. Use the new BR2_ENABLE_LTO option instead.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022.08.x
Arnout Vandecappelle (Essensium/Mind) 2022-07-25 17:22:26 +02:00 committed by Thomas Petazzoni
parent fb51422780
commit 70e37f8060
7 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ else
FASTD_CONF_OPTS += -Dsystemd=disabled
endif
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
FASTD_CONF_OPTS += -Db_lto=true
else
FASTD_CONF_OPTS += -Db_lto=false

View File

@ -11,7 +11,7 @@ LOG4CPLUS_LICENSE = Apache-2.0, BSD-2-Clause, BSD-like (threadpool)
LOG4CPLUS_LICENSE_FILES = LICENSE
LOG4CPLUS_INSTALL_STAGING = YES
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
LOG4CPLUS_CONF_OPTS += --enable-lto
else
LOG4CPLUS_CONF_OPTS += --disable-lto

View File

@ -23,7 +23,7 @@ NETDATA_DEPENDENCIES = libuv util-linux zlib
# provided by autoconf relies on wchar_t.
NETDATA_CONF_ENV = ac_cv_prog_cc_c99=-std=gnu99
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
NETDATA_CONF_OPTS += --enable-lto
else
NETDATA_CONF_OPTS += --disable-lto

View File

@ -69,7 +69,7 @@ else
ROCKSDB_MAKE_OPTS += ROCKSDB_DISABLE_ZSTD=1
endif
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
ROCKSDB_MAKE_OPTS += USE_LTO=1
else
ROCKSDB_MAKE_OPTS += USE_LTO=0

View File

@ -35,7 +35,7 @@ else
UNBOUND_CONF_OPTS += --without-pthreads
endif
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
UNBOUND_CONF_OPTS += --enable-flto
else
UNBOUND_CONF_OPTS += --disable-flto

View File

@ -52,7 +52,7 @@ VALGRIND_CONF_OPTS += \
--host=$(patsubst arm-%,armv7-%,$(GNU_TARGET_NAME))
endif
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
VALGRIND_CONF_OPTS += --enable-lto
else
VALGRIND_CONF_OPTS += --disable-lto

View File

@ -31,7 +31,7 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
WIRESHARK_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
endif
ifeq ($(BR2_GCC_ENABLE_LTO),y)
ifeq ($(BR2_ENABLE_LTO),y)
WIRESHARK_CONF_OPTS += -DENABLE_LTO=ON
else
WIRESHARK_CONF_OPTS += -DENABLE_LTO=OFF