ocaml/0016-configure-Allow-user-defined-C-compiler-flags.patch

28 lines
735 B
Diff
Raw Normal View History

2023-07-10 20:41:36 +00:00
From 9d3722c87ab15dfbc4e1a934e09ddc8253712d9c 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 16/17] configure: Allow user defined C compiler flags.
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
2023-07-10 20:41:36 +00:00
index a7974b0426..8068de3cfc 100644
--- a/configure.ac
+++ b/configure.ac
2023-07-10 20:41:36 +00:00
@@ -670,6 +670,10 @@ AS_CASE([$host],
internal_cflags="$cc_warnings"],
[common_cflags="-O"])])
+# Allow CFLAGS and LDFLAGS to be added.
+common_cflags="$common_cflags $CFLAGS"
2019-12-05 15:52:23 +00:00
+cclibs="$cclibs $LDFLAGS"
+
2019-06-27 13:50:15 +00:00
# Enable SSE2 on x86 mingw to avoid using 80-bit registers.
2023-07-10 20:41:36 +00:00
AS_CASE([$host],
[i686-*-mingw32],
--
2023-07-10 20:41:36 +00:00
2.41.0