libamplsolver: fix build on aarch64-darwin (#462284)
This commit is contained in:
@@ -25,6 +25,10 @@ stdenv.mkDerivation {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Allow install_name_tool rewrite paths on darwin.
|
||||||
|
# error: install_name_tool: changing install names or rpaths can't be redone for: /nix/store/...-libamplsolver-.../lib/libamplsolver.dylib (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
|
||||||
|
NIX_LDFLAGS = lib.optional stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
pushd sys.$(uname -m).$(uname -s)
|
pushd sys.$(uname -m).$(uname -s)
|
||||||
|
|||||||
Reference in New Issue
Block a user