From 2e5dcb35cdb2aaa355a2288f3a8be9215d23c90e Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Sat, 16 Mar 2024 20:34:47 +0100 Subject: [PATCH] * Build with --as-needed. --- debian/changelog | 1 + debian/rules | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 82fa2237..096213fd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ llvm-toolchain-18 (1:18.1.1-2) UNRELEASED; urgency=medium * Build-depend on llvm-spirv-18 instead of llvm-spirv-17. * Add a stage1 profile to disable curl, grpc and spirv. + * Build with --as-needed. -- Matthias Klose Tue, 12 Mar 2024 18:21:05 +0100 diff --git a/debian/rules b/debian/rules index 8d1489bc..ac451dc6 100755 --- a/debian/rules +++ b/debian/rules @@ -86,7 +86,7 @@ include /usr/share/dpkg/buildflags.mk # collect additional flags for all stages all builds CFLAGS_EXTRA = -Wno-unused-command-line-argument CXXFLAGS_EXTRA = -Wno-unused-command-line-argument -LDFLAGS_EXTRA = -Wl,--build-id +LDFLAGS_EXTRA = -Wl,--build-id,--as-needed # collect all flags for stage 1 toolchain build only STAGE_1_CFLAGS = $(CFLAGS) $(CFLAGS_EXTRA) $(CPPFLAGS)