netbsd.compat: use strip from cctools-port

llvm-strip does not support `-X` for Mach-O, so make sure the cctools
version is used.
This commit is contained in:
Randy Eckenrode 2023-07-11 12:53:28 -06:00
parent 9ae5c2de7f
commit 3f948b7664
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -212,7 +212,7 @@ in makeScopeWithSplicing
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# GNU objcopy produces broken .a libs which won't link into dependers.
# Makefiles only invoke `$OBJCOPY -x/-X`, so cctools strip works here.
"OBJCOPY=${buildPackages.darwin.cctools}/bin/strip"
"OBJCOPY=${buildPackages.darwin.cctools-port}/bin/strip"
];
RENAME = "-D";