Skip to content

Commit

Permalink
libgcc: use glibc major and minor version but not the patch level
Browse files Browse the repository at this point in the history
libgcc requires the version scheme X.Y whilst our glibc version
attribute usually is X.Y-Z where Z is our patchlevel.
  • Loading branch information
andir committed May 16, 2021
1 parent 20acd4c commit f28eea4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/gcc/libgcc/default.nix
Expand Up @@ -129,7 +129,8 @@ stdenvNoLibs.mkDerivation rec {

"--with-system-zlib"
] ++ lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc")
"--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.
"--with-glibc-version=${builtins.head (builtins.split "-" glibc.version)}";

configurePlatforms = [ "build" "host" ];
configureFlags = [
Expand Down

0 comments on commit f28eea4

Please sign in to comment.