Skip to content

Commit

Permalink
Merge pull request #241206 from amjoseph-nixpkgs/tighten-inhibit_libc…
Browse files Browse the repository at this point in the history
…-condition
  • Loading branch information
Artturin authored Oct 5, 2023
2 parents 25c3b03 + 926c920 commit c748544
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/compilers/gcc/common/pre-configure.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ in lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) ''
# gcc->clang "cross"-compilation manages to evade it: there
# hostPlatform != targetPlatform, hostPlatform.config == targetPlatform.config.
# We explicitly inhibit libc headers use in this case as well.
+ lib.optionalString (targetPlatform != hostPlatform && withoutTargetLibc) ''
+ lib.optionalString (targetPlatform != hostPlatform &&
withoutTargetLibc &&
targetPlatform.config == hostPlatform.config &&
(stdenv.cc.isClang || stdenv.targetPlatform.useLLVM)) ''
export inhibit_libc=true
''

Expand Down

0 comments on commit c748544

Please sign in to comment.