3
0
Fork 0
forked from mirrors/nixpkgs

stdenv: avoid -p flag for strip when boostrapping x86_64-darwin

The stdenv wouldn't build with it, as
compiler-rt-libc-11.1.0/lib/darwin/libclang_rt.*_osx.a
retained reference to SDKs (which we forbid for final stdenv).

Assigned authorship to Trofi; I just bisected and added condition.
https://github.com/NixOS/nixpkgs/pull/224669#issuecomment-1518225496
This commit is contained in:
Sergei Trofimovich 2023-04-22 15:59:48 +02:00 committed by Vladimír Čunát
parent 56aa87374a
commit e7eb209fed
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -63,6 +63,8 @@ rec {
unset SDKROOT
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
'' + lib.optionalString localSystem.isx86_64 ''
stripDebugFlags="-S" # the Darwin "strip" command does something odd with "-p"
'';
bootstrapTools = derivation ({