From: Marius Dinu Date: Wed, 30 Nov 2022 09:21:39 +0000 (+0200) Subject: tvheadend: add conditions for -O3 and LTO optimizations X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=149053198146a8821e8c12d7c7fce8c3a175c5b7;p=openwrt-packages.git tvheadend: add conditions for -O3 and LTO optimizations Building for arc, mips and powerpc platforms fails if -O3 and LTO optimizations are enabled. This patch removes that option for everything other than arm and x86_64. These are known to work. Fixes issue #19923. Also fixes a typo in the description. Signed-off-by: Marius Dinu --- diff --git a/multimedia/tvheadend/Config.in b/multimedia/tvheadend/Config.in index 741ae8ffa..de689fd33 100644 --- a/multimedia/tvheadend/Config.in +++ b/multimedia/tvheadend/Config.in @@ -3,10 +3,10 @@ comment "Generic options" config TVHEADEND_OPTIMIZE_SPEED bool "Optimize for speed" - depends on PACKAGE_tvheadend + depends on PACKAGE_tvheadend && (arm || aarch64 || x86_64) default n help - Optimize tvheadend for speed instead of size. This option adds -O2 and LTO (Link Time Optimization). + Optimize tvheadend for speed instead of size. This option adds -O3 and LTO (Link Time Optimization). Note: No benchmarks were performed when this option was added. Speed improvements (if any) are not known. config TVHEADEND_TRACE