ocaml/0002-configure-Allow-user-defined-C-compiler-flags.patch
Richard W.M. Jones cf41d3d77d Enable LTO again.
NOTE: I did not build this in Rawhide, because building it appears to
change some of the ocamlx() dependencies, which would require
everything in Rawhide to be rebuilt.  I will build all OCaml packages
in Rawhide once OCaml 4.11.0 has been released which should be in a
week or two.
2020-08-04 14:25:18 +01:00

28 lines
757 B
Diff

From 8ea0bc7713a89cd6340e35b4dae048be63c50aec 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 2/8] configure: Allow user defined C compiler flags.
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index fbd49c1ee..a35da2040 100644
--- a/configure.ac
+++ b/configure.ac
@@ -609,6 +609,10 @@ AS_CASE([$host],
internal_cflags="$gcc_warnings"],
[common_cflags="-O"])])
+# Allow CFLAGS and LDFLAGS to be added.
+common_cflags="$common_cflags $CFLAGS"
+cclibs="$cclibs $LDFLAGS"
+
internal_cppflags="-DCAML_NAME_SPACE $internal_cppflags"
# Enable SSE2 on x86 mingw to avoid using 80-bit registers.
--
2.28.0.rc2