[Pkg-ocaml-maint-commits] r1177 - trunk/packages/ocurl/trunk/debian/patches

Enrico Tassi gares-guest@costa.debian.org
Sat, 02 Apr 2005 17:11:03 +0000


Author: gares-guest
Date: 2005-04-02 17:11:03 +0000 (Sat, 02 Apr 2005)
New Revision: 1177

Modified:
   trunk/packages/ocurl/trunk/debian/patches/01_makefile.in.dpatch
Log:
fixed to make it use ocamlc instead of gcc (and no more -fPIC)


Modified: trunk/packages/ocurl/trunk/debian/patches/01_makefile.in.dpatch
===================================================================
--- trunk/packages/ocurl/trunk/debian/patches/01_makefile.in.dpatch	2005-04-02 16:52:34 UTC (rev 1176)
+++ trunk/packages/ocurl/trunk/debian/patches/01_makefile.in.dpatch	2005-04-02 17:11:03 UTC (rev 1177)
@@ -5,9 +5,9 @@
 ## DP: No description.
 
 @DPATCH@
-diff -urNad ocurl-0.2.0/Makefile.in /tmp/dpep.KDqUCS/ocurl-0.2.0/Makefile.in
---- ocurl-0.2.0/Makefile.in	2005-04-02 12:00:49.166447072 +0000
-+++ /tmp/dpep.KDqUCS/ocurl-0.2.0/Makefile.in	2005-04-02 12:00:59.463881624 +0000
+diff -urNad ocurl-0.2.0/Makefile.in /tmp/dpep.aNDt9h/ocurl-0.2.0/Makefile.in
+--- ocurl-0.2.0/Makefile.in	2005-04-02 17:02:15.382924240 +0000
++++ /tmp/dpep.aNDt9h/ocurl-0.2.0/Makefile.in	2005-04-02 17:03:45.555215968 +0000
 @@ -10,7 +10,7 @@
  INSTALL		= @INSTALL@
  INSTALLDATA	= @INSTALL_DATA@
@@ -17,15 +17,6 @@
  OCBYTE		= @OCAMLC@
  OCOPT		= @OCAMLOPT@
  
-@@ -20,7 +20,7 @@
- FLAGS		=
- LIBS		=
- 
--CFLAGS		= @CFLAGS@ @DEFS@
-+CFLAGS		= @CFLAGS@ @DEFS@ -fPIC
- CAMLINCDIR	= -I@OCAMLLIB@
- 
- CURLHELPEROBJS	= curl-helper.o
 @@ -31,9 +31,9 @@
  CURLCLIBS	= -cclib -lcurl-helper -cclib "@CURLLIBS@"
  
@@ -66,7 +57,8 @@
 +			@CURLLIBS@
  
  .c.o:
- 		$(CC) -c $(CFLAGS) $(CAMLINCDIR) $< -o $@
+-		$(CC) -c $(CFLAGS) $(CAMLINCDIR) $< -o $@
++	        $(OC) -c -ccopt "$(CFLAGS)" $<
  
  install:
  ifeq ($(FINDLIB),ocamlfind)