From: Stephane Glondu Date: Thu, 24 Mar 2011 18:11:56 +0000 (+0100) Subject: Link libbfd statically X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~319 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=362cb2de67d6cd74546920c3e455293e5728e38a;p=ocaml.git 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. --- 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"