We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9256c46 commit 47abf6aCopy full SHA for 47abf6a
scripts/mk_util.py
@@ -2077,6 +2077,9 @@ def mk_makefile(self, out):
2077
# Some ocamlmklib's don't like -g; observed on cygwin, but may be others as well.
2078
OCAMLMKLIB += ' -g'
2079
2080
+ if IS_OSX:
2081
+ OCAMLMKLIB += ' -ldopt -Wl,-headerpad_max_install_names'
2082
+
2083
z3mls = os.path.join(self.sub_dir, 'z3ml')
2084
2085
LIBZ3ML = ''
@@ -2694,6 +2697,8 @@ def mk_config():
2694
2697
CXXFLAGS = '%s -arch arm64' % CXXFLAGS
2695
2698
LDFLAGS = '%s -arch arm64' % LDFLAGS
2696
2699
SLIBEXTRAFLAGS = '%s -arch arm64' % SLIBEXTRAFLAGS
2700
+ if IS_OSX and is_ml_enabled():
2701
+ SLIBFLAGS += ' -Wl,-headerpad_max_install_names'
2702
2703
config.write('PREFIX=%s\n' % PREFIX)
2704
config.write('CC=%s\n' % CC)
0 commit comments