From: Andre Heider Date: Sat, 28 Jan 2023 15:04:10 +0000 (+0100) Subject: treewide: opt-out of tree-wide LTO usage X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9fe7cc62a6ca49e81e5656ace144e35c31a9a408;p=openwrt%2Fstaging%2Fnbd.git treewide: opt-out of tree-wide LTO usage These fail to build with LTO enabled or packages depending on them do. Signed-off-by: Andre Heider --- diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile index 7d6cfd5395..249acf1487 100644 --- a/package/boot/grub2/Makefile +++ b/package/boot/grub2/Makefile @@ -25,6 +25,7 @@ ifneq ($(BUILD_VARIANT),none) endif PKG_FLAGS:=nonshared +PKG_BUILD_FLAGS:=no-lto include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk diff --git a/package/libs/argp-standalone/Makefile b/package/libs/argp-standalone/Makefile index 1a48dcb2cd..23e5169796 100644 --- a/package/libs/argp-standalone/Makefile +++ b/package/libs/argp-standalone/Makefile @@ -19,6 +19,8 @@ PKG_MAINTAINER:=Ted Hess PKG_LICENSE:=LGPL-2.1 PKG_LICENSE:=Makefile.am +PKG_BUILD_FLAGS:=no-lto + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk diff --git a/package/libs/mbedtls/Makefile b/package/libs/mbedtls/Makefile index f49bb24de6..f86d489190 100644 --- a/package/libs/mbedtls/Makefile +++ b/package/libs/mbedtls/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mbedtls PKG_VERSION:=2.28.2 PKG_RELEASE:=2 -PKG_BUILD_FLAGS:=no-mips16 gc-sections +PKG_BUILD_FLAGS:=no-mips16 gc-sections no-lto PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/ARMmbed/mbedtls/tar.gz/v$(PKG_VERSION)?