On Sun, Jul 31, 2005 at 12:29:11PM +0200, Stefano Zacchiroli wrote: > AFAICT the bug is in OCamlMakefile which fails to pass PIC_CFLAGS when > inovking ocamlmklib. I thus suppose that adding "-ccopt -fPIC" in the > "$(DLLSONAME)" rule would be enough. Still, since I don't know > OCamlMakefile in detail I ask your advice on this.
Dear Markus, since I will be away in the next days and I don't want the pcre-ocaml debian package to be unbuildable for long I applied a quick and dirty patch to OCamlMakefile, which simply passes -fPIC to the building of all .o thru ocamlc. There should be a better way ... Kurt, could you please try it on your amd64 box? Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!-
#! /bin/sh /usr/share/dpatch/dpatch-run
## 31_fpic.dpatch by Stefano Zacchiroli <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./OCamlMakefile
/tmp/dpep-work.483SSF/trunk/OCamlMakefile
--- ./OCamlMakefile 2005-06-09 01:42:12.000000000 +0200
+++ /tmp/dpep-work.483SSF/trunk/OCamlMakefile 2005-07-31 22:00:28.000000000
+0200
@@ -1011,6 +1011,7 @@
.c.$(EXT_OBJ):
$(OCAMLC) -c -cc "$(CC)" -ccopt "$(CFLAGS) \
+ -fPIC \
$(CPPFLAGS) $(CPPFLAGS_WIN32) \
$(CFLAGS_WIN32) $(CINCFLAGS) $(CFLAG_O)$@ " $<
signature.asc
Description: Digital signature

