mirror of
https://github.com/Z3Prover/z3
synced 2026-02-09 18:40:51 +00:00
Merge pull request #8535 from Z3Prover/copilot/fix-install-name-tool-issue
Add -headerpad_max_install_names to all macOS dylib builds
This commit is contained in:
commit
72564da251
5 changed files with 18 additions and 1 deletions
|
|
@ -2749,7 +2749,9 @@ def mk_config():
|
|||
CXXFLAGS = '%s -arch arm64' % CXXFLAGS
|
||||
LDFLAGS = '%s -arch arm64' % LDFLAGS
|
||||
SLIBEXTRAFLAGS = '%s -arch arm64' % SLIBEXTRAFLAGS
|
||||
if IS_OSX and is_ml_enabled():
|
||||
# Add header padding for macOS to allow install_name_tool to modify the dylib
|
||||
# This fixes issues where install_name_tool fails with "larger updated load commands do not fit"
|
||||
if IS_OSX:
|
||||
SLIBFLAGS += ' -Wl,-headerpad_max_install_names'
|
||||
|
||||
config.write('PREFIX=%s\n' % PREFIX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue