Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 2225fec66cee24b1dfb07ae0436494d2 > files > 1

ocaml-ocamlgsl-0.6.0-1mdv2009.1.src.rpm

#! /bin/sh /usr/share/dpatch/dpatch-run
## match_gcc_4_2.dpatch by Sylvain Le Gall <gildor@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad ocamlgsl-0.6.0~/Makefile ocamlgsl-0.6.0/Makefile
--- ocamlgsl-0.6.0~/Makefile	2008-05-26 12:12:17.000000000 +0200
+++ ocamlgsl-0.6.0/Makefile	2008-05-26 12:12:26.000000000 +0200
@@ -21,7 +21,7 @@
 OCAML_BACKEND := mingw
 endif
 
-OCAML_BACKEND ?= $(shell $(OCAMLC) -verbose foo.c 2>&1 | $(AWK) "NR==1 { print \$$2 }")
+OCAML_BACKEND ?= $(shell $(OCAMLC) -verbose foo.c 2>&1 | $(AWK) "NR==1 && /\+ gcc-.*/ { print \"gcc\"; next; } NR==1 { print \$$2 }")
 OCAML_VERSION ?= $(shell $(OCAMLC) -version)
 
 OCAMLBCFLAGS := -g