From aeaa0893a364f516a04ee7da6e254b67f941fa0e Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Fri, 4 Sep 2020 06:23:06 +0200 Subject: [PATCH] Statically link lib{bfd,iberty} Gbp-Pq: Name 0008-Statically-link-lib-bfd-iberty.patch --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index ab1e1888..b3ebe744 100644 --- a/configure.ac +++ b/configure.ac @@ -1680,6 +1680,10 @@ AS_IF([test x"$with_bfd" != "xno"], 'ocamlobjinfo' will be unable to display info on .cmxs files. ]))]) +## Statically link libbfd and libiberty to avoid a versioned dependency +## too constrained on libbinutils +bfd_ldlibs="$(echo $bfd_ldlibs | sed 's/-lbfd/-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic -lz -ldl/')" + ## Does the assembler support debug prefix map and CFI directives as_has_debug_prefix_map=false asm_cfi_supported=false -- 2.30.2