ocaml/0009-configure-Only-use-OC_...

32 lines
1.1 KiB
Diff
Raw Normal View History

2022-06-18 11:02:39 +00:00
From 05b882737e0daecb86a6ef54e192508c60efcd88 Mon Sep 17 00:00:00 2001
2022-01-26 16:29:56 +00:00
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Wed, 26 Jan 2022 15:47:02 +0000
2022-06-18 11:02:39 +00:00
Subject: [PATCH 9/9] configure: Only use OC_* for building executables
2022-01-26 16:29:56 +00:00
Fedora >= 36 fills LD_FLAGS with lots of cruft, particularly stuff for
"package notes" which contains build paths.
In any case it seems pointless having both the OC_* variables and also
including the regular CFLAGS/LDFLAGS. Give me full control over what
ocamlopt uses.
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
2022-06-18 11:02:39 +00:00
index c763310acb..9cce5ea47a 100644
2022-01-26 16:29:56 +00:00
--- a/configure.ac
+++ b/configure.ac
2022-06-18 11:02:39 +00:00
@@ -37,7 +37,7 @@ CONFIGURE_ARGS="$*"
2022-01-26 16:29:56 +00:00
# at the moment they are not taken into account on Windows, because
# flexlink, which is used to build executables on this platform, can
# not handle them.
-mkexe="\$(CC) \$(OC_CFLAGS) \$(CFLAGS) \$(OC_LDFLAGS) \$(LDFLAGS)"
+mkexe="\$(CC) \$(OC_CFLAGS) \$(OC_LDFLAGS)"
# Flags for building executable files with debugging symbols
mkexedebugflag="-g"
--
2022-06-18 11:02:39 +00:00
2.36.1
2022-01-26 16:29:56 +00:00