Missing -nostdlib options in flexdll bootstrap

If OCaml was already installed, camlheader would be used from the
installation when building the bytecode flexdll/flexlink.exe
master
David Allsopp 2019-03-26 11:17:43 +00:00
parent 53d0cf6d3d
commit 627608a00a
1 changed files with 3 additions and 2 deletions

View File

@ -502,7 +502,7 @@ flexlink: flexdll/Makefile
cd stdlib && cp stdlib.cma std_exit.cmo *.cmi ../boot
$(MAKE) -C flexdll MSVC_DETECT=0 OCAML_CONFIG_FILE=../Makefile.config \
CHAINS=$(FLEXDLL_CHAIN) NATDYNLINK=false \
OCAMLOPT="../boot/ocamlrun ../boot/ocamlc -I ../boot" \
OCAMLOPT="../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot" \
flexlink.exe
$(MAKE) -C runtime clean
$(MAKE) partialclean
@ -513,7 +513,8 @@ flexlink.opt:
mv flexlink.exe flexlink && \
($(MAKE) OCAML_FLEXLINK="../boot/ocamlrun ./flexlink" MSVC_DETECT=0 \
OCAML_CONFIG_FILE=../Makefile.config \
OCAMLOPT="../ocamlopt.opt -I ../stdlib" flexlink.exe || \
OCAMLOPT="../ocamlopt.opt -nostdlib -I ../stdlib" \
flexlink.exe || \
(mv flexlink flexlink.exe && false)) && \
mv flexlink.exe flexlink.opt && \
mv flexlink flexlink.exe