ocaml/0005-configure-Allow-user-defined-C-compiler-flags.patch
Richard W.M. Jones 24e662a3fe Upgrade to OCaml 4.00.0 official release.
- Remove one patch (add -lpthread) which went upstream.
2012-07-28 11:25:14 +01:00

28 lines
697 B
Diff

From 054fdef0909de3dd1bd1142b4e57ff29f4826cfe Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 29 May 2012 20:44:18 +0100
Subject: [PATCH 5/6] configure: Allow user defined C compiler flags.
---
configure | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure b/configure
index e08bbce..cda73fd 100755
--- a/configure
+++ b/configure
@@ -1576,6 +1576,10 @@ case "$buggycc" in
nativecccompopts="$nativecccompopts -fomit-frame-pointer";;
esac
+# Allow user defined C Compiler flags
+bytecccompopts="$bytecccompopts $CFLAGS"
+nativecccompopts="$nativecccompopts $CFLAGS"
+
# Finish generated files
cclibs="$cclibs $mathlib"
--
1.7.10.4