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>
This commit is contained in:
parent
fb51422780
commit
70e37f8060
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user