summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSébastien Hinderer <seb@tarides.com>2022-10-19 23:07:25 +0200
committerSébastien Hinderer <seb@tarides.com>2022-12-12 10:12:44 +0100
commit74221f7a4a20694a2aaf20cf9dd0d39b49f73822 (patch)
tree0dffa12b041ab2d18e1eeb8fba6e9e4c5ef85964 /Makefile
parent74068a7fc30ddddbb3910abbbac8b044457f1653 (diff)
downloadocaml-74221f7a4a20694a2aaf20cf9dd0d39b49f73822.tar.gz
Fix the build of ocamllex
The rules were using the LINKFLAGS variable whose definition had been lost while merging lex/Makefile in the root Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6f4dc0c98f..184c1fc31a 100644
--- a/Makefile
+++ b/Makefile
@@ -1090,10 +1090,10 @@ ocamllex.opt: ocamlopt
$(MAKE) lex-allopt
lex/ocamllex$(EXE): $(ocamllex_MODULES:=.cmo)
- $(CAMLC) $(LINKFLAGS) -compat-32 -o $@ $^
+ $(CAMLC) $(OC_COMMON_LDFLAGS) -compat-32 -o $@ $^
lex/ocamllex.opt$(EXE): $(ocamllex_MODULES:=.cmx)
- $(CAMLOPT_CMD) $(LINKFLAGS) -o $@ $^
+ $(CAMLOPT_CMD) $(OC_COMMON_LDFLAGS) -o $@ $^
partialclean::
rm -f lex/*.cm* lex/*.o lex/*.obj