ocaml/0007-configure-Allow-user-d...

28 lines
754 B
Diff
Raw Normal View History

2022-06-18 11:02:39 +00:00
From b91178cc8fdf657933c26d54a0c67fd69eb67427 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 29 May 2012 20:44:18 +0100
2022-06-18 11:02:39 +00:00
Subject: [PATCH 7/9] configure: Allow user defined C compiler flags.
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
2022-06-18 11:02:39 +00:00
index 2f4ebf9b30..5ccfe8fb01 100644
--- a/configure.ac
+++ b/configure.ac
2022-06-18 11:02:39 +00:00
@@ -690,6 +690,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"
+
internal_cppflags="-DCAML_NAME_SPACE $internal_cppflags"
2019-06-27 13:50:15 +00:00
# Enable SSE2 on x86 mingw to avoid using 80-bit registers.
--
2022-06-18 11:02:39 +00:00
2.36.1