File ocaml-configure-Allow-user-defined-C-compiler-flags.patch of Package ocaml.7249

From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 29 May 2012 20:44:18 +0100
Subject: configure: Allow user defined C compiler flags.

---
 configure |    4 ++++
 1 file changed, 4 insertions(+)

--- a/configure
+++ b/configure
@@ -1737,6 +1737,10 @@ else
     has_huge_pages=false
 fi
 
+# Allow user defined C Compiler flags
+bytecccompopts="$bytecccompopts $CFLAGS"
+nativecccompopts="$nativecccompopts $CFLAGS"
+
 # Finish generated files
 
 cclibs="$cclibs $mathlib"
openSUSE Build Service is sponsored by