Skip to content

Commit 47abf6a

Browse files
wintersteigerarbipher
authored andcommitted
1 parent 9256c46 commit 47abf6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/mk_util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,6 +2077,9 @@ def mk_makefile(self, out):
20772077
# Some ocamlmklib's don't like -g; observed on cygwin, but may be others as well.
20782078
OCAMLMKLIB += ' -g'
20792079

2080+
if IS_OSX:
2081+
OCAMLMKLIB += ' -ldopt -Wl,-headerpad_max_install_names'
2082+
20802083
z3mls = os.path.join(self.sub_dir, 'z3ml')
20812084

20822085
LIBZ3ML = ''
@@ -2694,6 +2697,8 @@ def mk_config():
26942697
CXXFLAGS = '%s -arch arm64' % CXXFLAGS
26952698
LDFLAGS = '%s -arch arm64' % LDFLAGS
26962699
SLIBEXTRAFLAGS = '%s -arch arm64' % SLIBEXTRAFLAGS
2700+
if IS_OSX and is_ml_enabled():
2701+
SLIBFLAGS += ' -Wl,-headerpad_max_install_names'
26972702

26982703
config.write('PREFIX=%s\n' % PREFIX)
26992704
config.write('CC=%s\n' % CC)

0 commit comments

Comments
 (0)