ocaml-dose3/0004-Makefile.config.in-Disable-runtime-variant-pic.patch

30 lines
834 B
Diff

From d43ea399d74be91ea6019117226700628ed722c5 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 21 Jan 2021 20:36:09 +0000
Subject: [PATCH 4/4] Makefile.config.in: Disable -runtime-variant pic
Fails with this error for unclear reasons:
File "myocamlbuild.ml", line 1:
Error: Cannot find file camlheader_pic
---
Makefile.config.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.config.in b/Makefile.config.in
index 0dbc000..cae4d5f 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -64,7 +64,7 @@ endif
ifeq ("@OCAMLEXT@","native")
OCAMLBUILD=@OCAMLBUILD@
- PICOPTS=-lflags -runtime-variant,_pic
+ #PICOPTS=-lflags -runtime-variant,_pic
ifeq ("@OCAML_SYSTEM@","mingw")
INSTALLOPTS=-s --strip-program=i686-w64-mingw32-strip
else
--
2.29.2