From 31a58eed872c29cfa3e609b4f2d0ebf0372cf85d Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 23 Mar 2023 10:32:13 +0100 Subject: [PATCH] libdouble-conversion: refactor to use PKG_BUILD_FLAGS:=gc-sections See commit da370098 "treewide: add support for "gc-sections" in PKG_BUILD_FLAGS" on the main repository. Signed-off-by: Andre Heider --- libs/libdouble-conversion/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libdouble-conversion/Makefile b/libs/libdouble-conversion/Makefile index a641716..06d2321 100644 --- a/libs/libdouble-conversion/Makefile +++ b/libs/libdouble-conversion/Makefile @@ -23,6 +23,7 @@ PKG_LICENSE:=BSD-3c PKG_LICENSE_FILES:=COPYING LICENSE CMAKE_INSTALL:=1 +PKG_BUILD_FLAGS:=gc-sections include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk @@ -48,8 +49,7 @@ CMAKE_OPTIONS += \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF -TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -fno-rtti -flto -TARGET_LDFLAGS += -Wl,--gc-sections +TARGET_CXXFLAGS += -fno-rtti -flto define Package/libdouble-conversion/install $(INSTALL_DIR) $(1)/usr/lib -- 2.30.2