Package: sks / 1.1.6-14

0010-make-ocextr-as-bytecode-rather-than-native.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Wed, 11 May 2016 00:58:08 -0400
Subject: make ocextr as bytecode rather than native

ocextr is only ever run at build time, and it is not
performance-sensitive.  On some architectures, ocaml can *only*
produce bytecode; on those architectures, we'll still need ocextr in
order to complete the build.

On architectures where ocaml can produce native code, it still works
as bytecode, so this improvement doesn't break anything.
---
 bdb/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bdb/Makefile b/bdb/Makefile
index fcb9063..e136c38 100644
--- a/bdb/Makefile
+++ b/bdb/Makefile
@@ -36,7 +36,7 @@ endif
 COBJS = bdb_stubs.o
 
 ocextr: ocextr.ml
-	$(OCAMLOPT) -o ocextr ocextr.ml
+	$(OCAMLC) -o ocextr ocextr.ml
 
 libbdb.a: $(COBJS)
 	$(MKLIB) -custom -o bdb $(COBJS)