Disable --as-needed on armel

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

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
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-25) unstable; urgency=medium
* Fix libomp symbols file for t64.

6
debian/rules vendored
View File

@ -64,7 +64,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)