llvm-toolchain/debian/patches/strip-ignore-deterministic-archives.diff
Sylvestre Ledru 6bcd0a96b2 * Use llvm-strip instead of binutils strip.
Two reasons:
    - with clang stage2, the dbg packages were not generated
    - strip fails on stretch and other ubuntu on some archives
  For this, I had to silent the --enable-deterministic-archives
  option (https://bugs.llvm.org/show_bug.cgi?id=39789).
  Thanks to Rebecca Palmer for the idea
  (Closes: #913946)
2018-11-26 16:12:17 +01:00

11 lines
524 B
Diff

Index: llvm-toolchain-7-7.0.1~+rc2/tools/llvm-objcopy/StripOpts.td
===================================================================
--- llvm-toolchain-7-7.0.1~+rc2.orig/tools/llvm-objcopy/StripOpts.td
+++ llvm-toolchain-7-7.0.1~+rc2/tools/llvm-objcopy/StripOpts.td
@@ -47,3 +47,5 @@ def x : Flag<["-"], "x">,
def strip_unneeded : Flag<["-", "--"], "strip-unneeded">,
HelpText<"Remove all symbols not needed by relocations">;
+
+def deterministic : Flag<["--"], "enable-deterministic-archives">;