Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glibc: use libgcc from pkgsHostHost #259964

Closed
wants to merge 1 commit into from

Commits on Oct 9, 2023

  1. glibc: use libgcc from pkgsHostHost

    glibc depends on buildPackages.glibc for locale things.
    
    buildPackages.glibc depended on buildPackages.libgcc, which, since
    it's GCC, depends on the target's bintools, which depend on the
    target's glibc, which, again, depends on buildPackages.glibc, causing
    an infinute recursion when evaluating buildPackages.glibc when glibc
    hasn't come from stdenv (e.g. on musl).
    
    It's unlikely that buildPackages.glibc needs anything to do with the
    target, so I've broken the cycle by having it use
    pkgsHostHost.libgcc.
    
    This fixes cross compilation from musl to glibc.
    alyssais committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    be6561e View commit details
    Browse the repository at this point in the history