treewide: opt-out of tree-wide LTO usage
authorAndre Heider <a.heider@gmail.com>
Sat, 28 Jan 2023 15:04:10 +0000 (16:04 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 21 Mar 2023 17:28:23 +0000 (18:28 +0100)
These fail to build with LTO enabled or packages depending on them do.

Signed-off-by: Andre Heider <a.heider@gmail.com>
package/boot/grub2/Makefile
package/libs/argp-standalone/Makefile
package/libs/mbedtls/Makefile

index 7d6cfd539594a3117a4377c926c0e5fbc542efbd..249acf14877f021ebfcc60c1a9aeadb99b9aa215 100644 (file)
@@ -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
index 1a48dcb2cd72696b6547b2ff945de81961989ccc..23e51697964c7eec1f2154bd3fde496919cfc635 100644 (file)
@@ -19,6 +19,8 @@ PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
 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
 
index f49bb24de6357e14dd8806b4816250a2692ee985..f86d48919087f43784a5f2d4b913ac58d74dce60 100644 (file)
@@ -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)?