* Build with --as-needed.

This commit is contained in:
Matthias Klose 2024-03-16 20:34:47 +01:00
parent 4d034a9a83
commit 2e5dcb35cd
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -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 <doko@debian.org> Tue, 12 Mar 2024 18:21:05 +0100

2
debian/rules vendored
View File

@ -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)