From 4400e97473eb1d34e348d3cce25950dab0f88975 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Mon, 30 Jan 2023 18:02:32 +0100 Subject: [PATCH] treewide: opt out of LTO usage These fail to build or packages depending on them do when enabling CONFIG_USE_LTO. Signed-off-by: Andre Heider --- lang/python/python3/Makefile | 3 +++ libs/alsa-lib/Makefile | 2 +- sound/mpd/Makefile | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index b666c41121..611e4c12d1 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -34,6 +34,9 @@ PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 HOST_BUILD_PARALLEL:=1 +# LTO is handled here individually, see --with-lto below +# "no-lto" prevents CONFIG_USE_LTO to add additional and interfering flags +PKG_BUILD_FLAGS:=no-lto PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION) HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION) diff --git a/libs/alsa-lib/Makefile b/libs/alsa-lib/Makefile index 2636a79628..95ab3730e8 100644 --- a/libs/alsa-lib/Makefile +++ b/libs/alsa-lib/Makefile @@ -22,7 +22,7 @@ PKG_MAINTAINER:=Ted Hess , \ PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 -PKG_BUILD_FLAGS:=no-mips16 +PKG_BUILD_FLAGS:=no-mips16 no-lto include $(INCLUDE_DIR)/package.mk diff --git a/sound/mpd/Makefile b/sound/mpd/Makefile index 732e23c874..c46ed1a611 100644 --- a/sound/mpd/Makefile +++ b/sound/mpd/Makefile @@ -22,7 +22,7 @@ PKG_CONFIG_DEPENDS:= \ CONFIG_BUILD_PATENTED \ CONFIG_IPV6 \ -PKG_BUILD_FLAGS:=no-mips16 +PKG_BUILD_FLAGS:=no-mips16 no-lto include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk -- 2.30.2