diff --git a/debian/changelog b/debian/changelog index e1e8ad59..004d6044 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,7 @@ llvm-toolchain-snapshot (1:18~++20230921012857+4cf8da94198d-1~exp1) UNRELEASED; * Limit the number of parallel processes based on the available memory and the packages to be built (flang has some memory hogs). * Also install liborc_rt*.a on ppc64 and ppc64el. + * Fix stripping build flags on Ubuntu/ppc64el. [ Sylvestre Ledru ] * New supstream release diff --git a/debian/rules b/debian/rules index d976fb55..82b82f39 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,