Merge pull request #220723 from wegank/libamplsolver-darwin
libamplsolver: fix runtime error on darwin
This commit is contained in:
commit
a1367682be
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ stdenv.mkDerivation rec {
|
||||||
install -D -m 0644 *${stdenv.hostPlatform.extensions.sharedLibrary}* -t $out/lib
|
install -D -m 0644 *${stdenv.hostPlatform.extensions.sharedLibrary}* -t $out/lib
|
||||||
install -D -m 0644 *.a -t $out/lib
|
install -D -m 0644 *.a -t $out/lib
|
||||||
popd
|
popd
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
install_name_tool -id $out/lib/libamplsolver.dylib $out/lib/libamplsolver.dylib
|
||||||
|
'' + ''
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue