Skip to content

Commit

Permalink
fixes compilation flags for OCaml plugins
Browse files Browse the repository at this point in the history
The `-linkall` option is needed for a plugin to be standalone,
otherwise it will miss those dependencies that are not used.
  • Loading branch information
ivg committed Dec 13, 2017
1 parent 82c2650 commit 4967806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mk_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ def mk_makefile(self, out):
out.write('%s.cmxa: %s %s %s %s.cma\n' % (z3mls, cmxs, stubso, z3dllso, z3mls))
out.write('\t%s -o %s -I %s %s %s %s\n' % (OCAMLMKLIB, z3mls, self.sub_dir, stubso, cmxs, LIBZ3))
out.write('%s.cmxs: %s.cmxa\n' % (z3mls, z3mls))
out.write('\t%s -shared -o %s.cmxs -I %s %s.cmxa\n' % (OCAMLOPTF, z3mls, self.sub_dir, z3mls))
out.write('\t%s -linkall -shared -o %s.cmxs -I %s %s.cmxa\n' % (OCAMLOPTF, z3mls, self.sub_dir, z3mls))

out.write('\n')
out.write('ml: %s.cma %s.cmxa %s.cmxs\n' % (z3mls, z3mls, z3mls))
Expand Down

0 comments on commit 4967806

Please sign in to comment.