Commit ba6f5b83 authored by Kyle Robbertze's avatar Kyle Robbertze

Add patch for building for bytecode architectures

parent d9fe8eaa
From: Kyle Robbertze <krobbertze@gmail.com>
Date: Wed, 23 Jan 2019 11:38:01 +0200
Subject: Add support for bytecode libraries
---
src/OMakefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/OMakefile b/src/OMakefile
index 5f807d5..ec60b23 100644
--- a/src/OMakefile
+++ b/src/OMakefile
@@ -244,7 +244,10 @@ MakeLibOCaml(name) =
-linkall $(mapprefix -cclib, $(LDFLAGS) $(getvar LDFLAGS_$(name)))
default
array()
- XOCamlLibrary($(LIBRARY_PREFIX)_$(name), $(getvar FILES_$(name)))
+ if $(NATIVE_ENABLED)
+ XOCamlLibrary($(LIBRARY_PREFIX)_$(name), $(getvar FILES_$(name)))
+ if $(BYTE_ENABLED)
+ OCamlLibrary($(LIBRARY_PREFIX)_$(name), $(getvar FILES_$(name)))
else # inpure
$(LIBRARY_PREFIX)_$(name).cma $(LIBRARY_PREFIX)_$(name).cmxa $(LIBRARY_PREFIX)_$(name).cmxs: $(MakeLibC $(name))
@@ -255,7 +258,10 @@ MakeLibOCaml(name) =
# use mapprefix instead of addprefix, otherwise "-cclib -lgif"
# is considered one option.
OCAML_LIB_FLAGS=-linkall $(mapprefix -cclib, $(LDFLAGS) $(getvar LDFLAGS_$(name)))
- XOCamlLibrary($(LIBRARY_PREFIX)_$(name), $(getvar FILES_$(name)))
+ if $(NATIVE_ENABLED)
+ XOCamlLibrary($(LIBRARY_PREFIX)_$(name), $(getvar FILES_$(name)))
+ if $(BYTE_ENABLED)
+ OCamlLibrary($(LIBRARY_PREFIX)_$(name), $(getvar FILES_$(name)))
LIBRARIES=
# CR jfurue: lablgtk2, freetype and graphics may not be buildable
0001-Disable-liv-example.patch
0002-Use-pkg-config-to-detect-freetype.patch
0003-drop-Check_header_library-for-freetype.patch
0004-Add-support-for-bytecode-libraries.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment