[Pkg-ocaml-maint-commits] [SCM] OCaml packaging branch, 312/master, updated. debian/3.11.2-4-43-g362cb2d
Stephane Glondu
steph at glondu.net
Thu Mar 24 19:06:44 UTC 2011
The following commit has been merged in the 312/master branch:
commit 362cb2de67d6cd74546920c3e455293e5728e38a
Author: Stephane Glondu <steph at glondu.net>
Date: Thu Mar 24 19:11:56 2011 +0100
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 936b992..7f78cc3 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"
--
OCaml packaging
More information about the Pkg-ocaml-maint-commits
mailing list