We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 20acd4c commit f28eea4Copy full SHA for f28eea4
pkgs/development/libraries/gcc/libgcc/default.nix
@@ -129,7 +129,8 @@ stdenvNoLibs.mkDerivation rec {
129
130
"--with-system-zlib"
131
] ++ lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc")
132
- "--with-glibc-version=${glibc.version}";
+ # libgcc expects a glibc version of the format X.Y while we usually have a version X.Y-Z where Z is our patchlevel.
133
+ "--with-glibc-version=${builtins.head (builtins.split "-" glibc.version)}";
134
135
configurePlatforms = [ "build" "host" ];
136
configureFlags = [
0 commit comments