From 35076f5af3efb3fcec33960a175cb1cb377ead4d Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Thu, 23 Nov 2023 09:45:14 +0100 Subject: [PATCH] * Fix stripping build flags on Ubuntu/ppc64el. --- debian/changelog | 1 + debian/rules | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index ab4a95bc..1a862485 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debian/rules b/debian/rules index 7b8438cd..0641f0ec 100755 --- a/debian/rules +++ b/debian/rules @@ -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,