* Fix stripping build flags on Ubuntu/ppc64el.

This commit is contained in:
Matthias Klose 2023-11-23 09:44:36 +01:00
parent 6e56a740df
commit beec0c2024
2 changed files with 8 additions and 3 deletions

1
debian/changelog vendored
View File

@ -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

6
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
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,