Disable --as-needed on armel

This commit is contained in:
Sylvestre Ledru 2024-04-27 01:12:05 +02:00
parent 898f458814
commit a74dbb8262
2 changed files with 12 additions and 0 deletions

6
debian/changelog vendored
View File

@ -531,6 +531,12 @@ llvm-toolchain-snapshot (1:17~++20230128060150+75153adeda1a-1~exp1) experimental
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 28 Jan 2023 18:07:40 +0100
llvm-toolchain-16 (1:16.0.6-26) unstable; urgency=medium
* Disable --as-needed on armel
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 27 Apr 2024 01:12:00 +0200
llvm-toolchain-16 (1:16.0.6-18) unstable; urgency=medium
[ Gianfranco Costamagna ]

6
debian/rules vendored
View File

@ -86,7 +86,13 @@ 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
ifeq (,$(filter $(DEB_HOST_ARCH), armel))
LDFLAGS_EXTRA = -Wl,--build-id,--as-needed
else
# fails on armel. we are getting some missing latomic
LDFLAGS_EXTRA = -Wl,--build-id
endif
# collect all flags for stage 1 toolchain build only
STAGE_1_CFLAGS = $(CFLAGS) $(CFLAGS_EXTRA) $(CPPFLAGS)