libredirect: fix install name on aarch64-darwin

The install name should be the full path. This matches x86_64-darwin.
This commit is contained in:
Randy Eckenrode 2024-09-02 01:36:56 -04:00
parent e694240f77
commit 4ebdf0442f
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -45,6 +45,7 @@ else stdenv.mkDerivation rec {
-isystem ${llvmPackages.libclang.lib}/lib/clang/*/include \
-L${llvmPackages.clang.libc}/lib \
-Wl,-install_name,$libName \
-Wl,-install_name,$out/lib/$libName \
-Wall -std=c99 -O3 -fPIC libredirect.c \
-shared -o "$libName"
'' else if stdenv.hostPlatform.isDarwin then ''