From 2ad0fc21d8337f4a441e1b72cd82773a2cedf662 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Mon, 1 Aug 2022 14:38:19 +0300 Subject: [PATCH] treewide: add PKG_LTO:=0 where needed Add PKG_LTO:=0 to packages failing to build with CONFIG_LTO=1. --- package/boot/grub2/Makefile | 1 + package/devel/perf/Makefile | 1 + package/libs/argp-standalone/Makefile | 2 ++ package/libs/elfutils/Makefile | 1 + package/libs/mbedtls/Makefile | 1 + package/libs/openssl/Makefile | 1 + package/utils/lua5.3/Makefile | 1 + 7 files changed, 8 insertions(+) diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile index c4cc43de2e..d30c1393c0 100644 --- a/package/boot/grub2/Makefile +++ b/package/boot/grub2/Makefile @@ -21,6 +21,7 @@ PKG_BUILD_DEPENDS:=grub2/host ifneq ($(BUILD_VARIANT),none) PKG_ASLR_PIE:=0 + PKG_LTO:=0 PKG_SSP:=0 endif diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile index d556e2d9f0..26eb3972e4 100644 --- a/package/devel/perf/Makefile +++ b/package/devel/perf/Makefile @@ -16,6 +16,7 @@ PKG_USE_MIPS16:=0 PKG_BUILD_PARALLEL:=1 PKG_MAINTAINER:=Felix Fietkau PKG_FLAGS:=nonshared +PKG_LTO:=0 # Perf's makefile and headers are not relocatable and must be built from the # Linux sources directory diff --git a/package/libs/argp-standalone/Makefile b/package/libs/argp-standalone/Makefile index 1a48dcb2cd..ebb7975b29 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_LTO:=0 + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk diff --git a/package/libs/elfutils/Makefile b/package/libs/elfutils/Makefile index 4ca37d3b06..af832157dc 100644 --- a/package/libs/elfutils/Makefile +++ b/package/libs/elfutils/Makefile @@ -22,6 +22,7 @@ PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_USE_MIPS16:=1 +PKG_LTO:=0 PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone include $(INCLUDE_DIR)/package.mk diff --git a/package/libs/mbedtls/Makefile b/package/libs/mbedtls/Makefile index 701d338a2c..87826a5061 100644 --- a/package/libs/mbedtls/Makefile +++ b/package/libs/mbedtls/Makefile @@ -11,6 +11,7 @@ PKG_NAME:=mbedtls PKG_VERSION:=2.28.1 PKG_RELEASE:=$(AUTORELEASE) PKG_USE_MIPS16:=0 +PKG_LTO:=0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/ARMmbed/mbedtls/tar.gz/v$(PKG_VERSION)? diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index bf2d6ae64d..60591f45ee 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openssl/Makefile @@ -13,6 +13,7 @@ PKG_BUGFIX:=q PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX) PKG_RELEASE:=$(AUTORELEASE) PKG_USE_MIPS16:=0 +PKG_LTO:=0 PKG_BUILD_PARALLEL:=1 diff --git a/package/utils/lua5.3/Makefile b/package/utils/lua5.3/Makefile index 19f3b4dfda..dbcc55d0c9 100644 --- a/package/utils/lua5.3/Makefile +++ b/package/utils/lua5.3/Makefile @@ -16,6 +16,7 @@ PKG_SOURCE_URL:=http://www.lua.org/ftp/ \ http://www.tecgraf.puc-rio.br/lua/ftp/ PKG_HASH:=0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac PKG_BUILD_PARALLEL:=1 +PKG_LTO:=0 PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYRIGHT -- 2.30.2