From 35f4ef76e0c88b690ec55f26aed072c4c5989eff Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 23 Mar 2023 09:09:13 +0100 Subject: treewide: 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. Note: This only touches packages which use all three parts (-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by this build flag. Some packages only use a subset, and these are left unchanged for now. Signed-off-by: Andre Heider --- multimedia/v4l2rtspserver/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'multimedia') diff --git a/multimedia/v4l2rtspserver/Makefile b/multimedia/v4l2rtspserver/Makefile index 9ddcd1eaf..f93d0647e 100644 --- a/multimedia/v4l2rtspserver/Makefile +++ b/multimedia/v4l2rtspserver/Makefile @@ -16,6 +16,8 @@ PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2rtspserver PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_MIRROR_HASH:=f2eca75c8af9933f4ceb67cab74af488e1e9ec8af9cbef2534fda5b701b1d63d +PKG_BUILD_FLAGS:=gc-sections + LIVE555_VERSION:=2022.10.01 LIVE555_HASH:=429de73061e3fc6901c4d2f0b7562ae3f6233060ca4b5e182fe555d065cbdd45 LIVE555_FILE:=live.$(LIVE555_VERSION).tar.gz @@ -49,8 +51,8 @@ define Download/live555 HASH:=$(LIVE555_HASH) endef -TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto -TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed +TARGET_CFLAGS += -flto +TARGET_LDFLAGS += -Wl,--as-needed CMAKE_OPTIONS += \ -DALSA=OFF \ -- cgit v1.2.3