[ 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 <julien.cristau@ens-lyon.org> Mon, 9 Jan 2006 23:43:40 +0100
+ -- Julien Cristau <julien.cristau@ens-lyon.org> Thu, 12 Jan 2006 15:29:51 +0100
ocaml (3.09.1-1) unstable; urgency=low
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## call_ld_via_gcc.dpatch by Julien Cristau <julien.cristau@ens-lyon.org>
+##
+## 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)|' \