libdouble-conversion: refactor to use PKG_BUILD_FLAGS:=lto
authorAndre Heider <a.heider@gmail.com>
Thu, 23 Mar 2023 09:33:06 +0000 (10:33 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 11:16:13 +0000 (13:16 +0200)
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
libs/libdouble-conversion/Makefile

index 06d2321b7f9d5d98b478ca12de97976b2300eb03..d2d6e8e191cf5764a42bf39e02ac658c41cc6357 100644 (file)
@@ -23,7 +23,7 @@ PKG_LICENSE:=BSD-3c
 PKG_LICENSE_FILES:=COPYING LICENSE
 
 CMAKE_INSTALL:=1
-PKG_BUILD_FLAGS:=gc-sections
+PKG_BUILD_FLAGS:=gc-sections lto
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
@@ -49,7 +49,7 @@ CMAKE_OPTIONS += \
        -DBUILD_SHARED_LIBS=ON \
        -DBUILD_TESTING=OFF
 
-TARGET_CXXFLAGS += -fno-rtti -flto
+TARGET_CXXFLAGS += -fno-rtti
 
 define Package/libdouble-conversion/install
        $(INSTALL_DIR) $(1)/usr/lib