From: Stefano Zacchiroli <zack@upsilon.cc>
Date: Thu, 8 Apr 2010 22:07:02 +0200
Subject: [PATCH] build PIC shared objects

---
 OCamlMakefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/OCamlMakefile b/OCamlMakefile
index 2fbcb07..d1060eb 100644
--- a/OCamlMakefile
+++ b/OCamlMakefile
@@ -1113,6 +1113,7 @@ endif
 
 .c.$(EXT_OBJ):
 			$(OCAMLC) -c -cc "$(CC)" -ccopt "$(CFLAGS) \
+				-fPIC \
 				$(CPPFLAGS) $(CPPFLAGS_WIN32) \
 				$(CFLAGS_WIN32) $(CINCFLAGS) $(CFLAG_O)$@ " $<
 
-- 
