libredirect: fixes for new Darwin SDK (#347012)

This commit is contained in:
Emily 2024-10-11 01:57:20 +01:00 committed by GitHub
commit 5f8188ec86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,10 +41,10 @@ else stdenv.mkDerivation rec {
# like arm64(e).
PATH=${bintools-unwrapped}/bin:${llvmPackages.clang-unwrapped}/bin:$PATH \
clang -arch x86_64 -arch arm64 -arch arm64e \
-isystem ${llvmPackages.clang.libc}/include \
-isystem "$SDKROOT/usr/include" \
-isystem ${llvmPackages.libclang.lib}/lib/clang/*/include \
-L${llvmPackages.clang.libc}/lib \
-Wl,-install_name,$libName \
"-L$SDKROOT/usr/lib" \
-Wl,-install_name,$out/lib/$libName \
-Wall -std=c99 -O3 -fPIC libredirect.c \
-shared -o "$libName"
'' else if stdenv.hostPlatform.isDarwin then ''