gnat13Packages.gnatcoll-core: fix dylib names

This commit is contained in:
Weijia Wang 2024-04-04 09:18:36 +02:00
parent d3985f53bb
commit 0e00487628
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ stdenv.mkDerivation {
"LIBRARY_TYPE=relocatable"
];
env = lib.optionalAttrs stdenv.isDarwin {
NIX_LDFLAGS = "-headerpad_max_install_names";
};
# Fixes gprbuild being linked statically always. Based on the AUR's patch:
# https://aur.archlinux.org/cgit/aur.git/plain/0001-Makefile-build-relocatable-instead-of-static-binary.patch?h=gprbuild&id=bac524c76cd59c68fb91ef4dfcbe427357b9f850
patches = lib.optionals (!stdenv.hostPlatform.isStatic) [