Skip to content

Commit 98b4dd7

Browse files
committed
abnativeelf: avoid over-stripping static libraries
1 parent 4ca6e35 commit 98b4dd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

native/abnativeelf.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,8 @@ int elf_copy_debug_symbols(const char *src_path, const char *dst_path,
650650
flags &= ~AB_ELF_USE_EU_STRIP;
651651
args.emplace_back("-R");
652652
args.emplace_back(".gnu.lto*");
653+
args.emplace_back("--strip-debug");
654+
extra_args.emplace_back("--enable-deterministic-archives");
653655
break;
654656
case BinaryType::Executable:
655657
// strip all symbols

0 commit comments

Comments
 (0)