* Fix stripping build flags on Ubuntu/ppc64el.

This commit is contained in:
Matthias Klose 2023-11-23 09:45:14 +01:00
parent a7ae059e08
commit 35076f5af3
2 changed files with 8 additions and 3 deletions

1
debian/changelog vendored
View File

@ -4,6 +4,7 @@ llvm-toolchain-17 (1:17.0.5-2) UNRELEASED; urgency=medium
* Further limit the number of parallel processes
* Don't build-depend on llvm-spirv-17 on armel and mipsel (LLVM 17 is not
yet built on these architectures).
* Fix stripping build flags on Ubuntu/ppc64el.
[ Sylvestre Ledru ]
* Add a symlink for libc++experimental.a to /usr/lib/*/libc++experimental.a

10
debian/rules vendored
View File

@ -65,9 +65,13 @@ CONFIGURE_EXTRA =
# disable fixfilepath in favor of the llvm-project supplied flavor, disable lto
export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto
# these are handled on a per stage / build basis
export DEB_CFLAGS_MAINT_STRIP = -g -O2
export DEB_CXXFLAGS_MAINT_STRIP = -g -O2
ifeq ($(VENDOR)-$(DEB_HOST_ARCH),Ubuntu-ppc64el)
export DEB_CFLAGS_MAINT_STRIP = -g -O3
export DEB_CXXFLAGS_MAINT_STRIP = -g -O3
else
export DEB_CFLAGS_MAINT_STRIP = -g -O2
export DEB_CXXFLAGS_MAINT_STRIP = -g -O2
endif
include /usr/share/dpkg/buildflags.mk
# We use a stage2 build. It means that a first clang is built using gcc,