From: Julien Cristau Date: Thu, 12 Jan 2006 14:32:42 +0000 (+0000) Subject: Add patch to make ocamlopt -output-obj and ocamlopt -pack call the linker X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~664 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c7a17f72bf69d16c27c370c2bc698f27d17cd002;p=ocaml.git Add patch to make ocamlopt -output-obj and ocamlopt -pack call the linker via gcc instead of directly, which allows us to pass the same linking options in these cases and in the common case (where ocamlopt already used gcc). This should unbreak ocamlopt -pack on alpha, and thus fix the build failure of camomile. --- diff --git a/debian/changelog b/debian/changelog index 493f395c..ce7f65f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,13 @@ ocaml (3.09.1-2) UNRELEASED; urgency=low [ Julien Cristau ] * build-arch is a phony target. + * Add patch to make ocamlopt -output-obj and ocamlopt -pack call the linker + via gcc instead of directly, which allows us to pass the same linking + options in these cases and in the common case (where ocamlopt already used + gcc). This should unbreak ocamlopt -pack on alpha, and thus fix the build + failure of camomile. - -- Julien Cristau Mon, 9 Jan 2006 23:43:40 +0100 + -- Julien Cristau Thu, 12 Jan 2006 15:29:51 +0100 ocaml (3.09.1-1) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 04b4ec79..f2986019 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -4,3 +4,4 @@ dumpobj man-ocamlmklib kbsd-gnu alpha_ld_no-relax +call_ld_via_gcc diff --git a/debian/patches/call_ld_via_gcc.dpatch b/debian/patches/call_ld_via_gcc.dpatch new file mode 100644 index 00000000..72775525 --- /dev/null +++ b/debian/patches/call_ld_via_gcc.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## call_ld_via_gcc.dpatch by Julien Cristau +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Make ocamlopt -output-obj and -pack call ld via gcc instead of +## DP: directly, so the options we pass to it can be the same as in the normal +## DP: linking case + +@DPATCH@ + +--- ocaml-3.09.1.orig/Makefile 2005-09-24 18:20:36.000000000 +0200 ++++ ocaml-3.09.1/Makefile 2006-01-12 10:17:42.000000000 +0100 +@@ -324,8 +324,8 @@ + -e 's|%%BYTELINK%%|$(BYTECC) $(BYTECCLINKOPTS)|' \ + -e 's|%%NATIVECC%%|$(NATIVECC) $(NATIVECCCOMPOPTS)|' \ + -e 's|%%NATIVELINK%%|$(NATIVECC) $(NATIVECCLINKOPTS)|' \ +- -e 's|%%PARTIALLD%%|ld -r $(NATIVECCLINKOPTS)|' \ +- -e 's|%%PACKLD%%|ld -r $(NATIVECCLINKOPTS)|' \ ++ -e 's|%%PARTIALLD%%|gcc -nostdlib -Wl,-r $(NATIVECCLINKOPTS)|' \ ++ -e 's|%%PACKLD%%|gcc -nostdlib -Wl,-r $(NATIVECCLINKOPTS)|' \ + -e 's|%%BYTECCLIBS%%|$(BYTECCLIBS)|' \ + -e 's|%%NATIVECCLIBS%%|$(NATIVECCLIBS)|' \ + -e 's|%%RANLIBCMD%%|$(RANLIBCMD)|' \