Skip to content

Commit

Permalink
Add path flags for cc loader (linux).
Browse files Browse the repository at this point in the history
  • Loading branch information
arbipher committed Oct 25, 2021
1 parent 3a3cef8 commit ea5656c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/mk_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2014,8 +2014,10 @@ def mk_makefile(self, out):

LIBZ3 = LIBZ3 + ' ' + ' '.join(map(lambda x: '-cclib ' + x, LDFLAGS.split()))
if not STATIC_LIB:
dllpath = '-dllpath $$(%s printconf path)/stublibs' % OCAMLFIND
LIBZ3 = LIBZ3 + ' ' + dllpath
stubs_install_path = '$$(%s printconf path)/stublibs' % OCAMLFIND
loadpath = '-ccopt -L' + stubs_install_path
dllpath = '-dllpath ' + stubs_install_path
LIBZ3 = LIBZ3 + ' ' + loadpath + ' ' + dllpath

if DEBUG_MODE and not(is_cygwin()):
# Some ocamlmklib's don't like -g; observed on cygwin, but may be others as well.
Expand Down

0 comments on commit ea5656c

Please sign in to comment.