From 362cb2de67d6cd74546920c3e455293e5728e38a Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Thu, 24 Mar 2011 19:11:56 +0100 Subject: [PATCH] Link libbfd statically Binutils's libbfd provides no ABI compatibility between different versions, making ocaml depend strongly on the version of binutils it was compiled with. Let's use libbfd.a instead. Note: we are already using libiberty.a, for which there is no shared library at all. --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 936b9925..7f78cc3c 100755 --- a/debian/rules +++ b/debian/rules @@ -61,6 +61,7 @@ CONFIGURE_OPTS := \ -tklibs "-L/usr/lib -ltk8.5 -ltcl8.5" CONFIGURE_SED := \ + -e "/LIBBFD_LINK/s%-lbfd%-Wl,-Bstatic -lbfd -Wl,-Bdynamic%" \ -e "s%MANDIR=.*$$%MANDIR=\$$(PREFIX)/share/man%g" \ -e "s%LIBDIR=.*$$%LIBDIR=\$$(PREFIX)/lib/ocaml%g" \ -e "s%STUBLIBDIR=.*$$%STUBLIBDIR=\$$(PREFIX)/lib/ocaml/stublibs%g" -- 2.30.2