2020-01-18 11:43:26 +00:00
|
|
|
From 122b350037d93e9f44357b215d5ecfbadb8d8fa5 Mon Sep 17 00:00:00 2001
|
2019-04-26 08:37:35 +00:00
|
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
|
Date: Tue, 29 May 2012 20:44:18 +0100
|
2020-01-18 11:43:26 +00:00
|
|
|
Subject: [PATCH 2/5] configure: Allow user defined C compiler flags.
|
2019-04-26 08:37:35 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
configure.ac | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2020-01-18 11:43:26 +00:00
|
|
|
index 90e6a041e..2f7e829e5 100644
|
2019-04-26 08:37:35 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2020-01-18 11:43:26 +00:00
|
|
|
@@ -590,6 +590,10 @@ AS_CASE([$host],
|
2019-04-26 08:37:35 +00:00
|
|
|
internal_cflags="$gcc_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-04-26 08:37:35 +00:00
|
|
|
+
|
|
|
|
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.
|
2019-04-26 08:37:35 +00:00
|
|
|
--
|
2020-01-18 11:43:26 +00:00
|
|
|
2.24.1
|
2019-04-26 08:37:35 +00:00
|
|
|
|