Skip to content

Commit

Permalink
Merge pull request #727 from bobot/fix_compilation_cmxs
Browse files Browse the repository at this point in the history
Restore compilation of cmxs for 5.0
  • Loading branch information
yallop authored Feb 13, 2023
2 parents 2ddd2c9 + b278b0f commit dfef6bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ LIB_TARGETS = $(BUILDDIR)/$(PROJECT).cma \
ifeq ($(BEST),native)
LIB_TARGETS += $(BUILDDIR)/$(PROJECT).cmxa
endif
ifneq ($(wildcard $(shell $(OCAMLFIND) ocamlc -where)/dynlink.cmxa),)
OCAMLC_WHERE:=$(shell $(OCAMLFIND) ocamlc -where)
ifneq ($(wildcard $(OCAMLC_WHERE)/dynlink.cmxa $(OCAMLC_WHERE)/dynlink/dynlink.cmxa),)
LIB_TARGETS += $(BUILDDIR)/$(PROJECT).cmxs
endif
LIB_TARGET_EXTRAS = $(if $(STUB_LIB),$(BUILDDIR)/lib$(PROJECT)_stubs.a) \
Expand Down

0 comments on commit dfef6bc

Please sign in to comment.