On Stretch (binutils 2.28), do not run strip on libFuzzer.a, libc++.a & libc++abi.a because it segfaults

This commit is contained in:
Sylvestre Ledru 2018-08-17 10:04:41 +02:00
parent a6d47ade45
commit 10fe453c3b
2 changed files with 9 additions and 1 deletions

3
debian/changelog vendored
View File

@ -1,5 +1,8 @@
llvm-toolchain-7 (1:7~+rc1-1~exp3) experimental; urgency=medium
* dh_strip should be verbose
* On Stretch (binutils 2.28), do not run strip on libFuzzer.a, libc++.a
& libc++abi.a because it segfaults
* Fixed "weak-library-dev-dependency libc++-7-dev on libc++-7-helpers"
* Fixed "libomp5-7: shlibs-declares-dependency-on-other-package
libomp5-7) (>= 1:7~svn298832-1~)"

7
debian/rules vendored
View File

@ -597,7 +597,12 @@ endif
# ifeq (${LLD_ENABLE},yes)
# dh_strip -p liblld-$(LLVM_VERSION) --dbg-package=liblld-$(LLVM_VERSION)-dbg
# endif
dh_strip -a
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.28 ; echo $$?),0)
# strip segfaults on libFuzzer.a
dh_strip -a -v -XlibFuzzer.a -Xlibc++.a -Xlibc++abi.a
else
dh_strip -a -v
endif
override_dh_install: