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 authored and Jonathan Ringer committed May 16, 2021
1 parent 20acd4c commit 6020fe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/gcc/libgcc/default.nix
Original file line number Diff line number Diff line change
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 6020fe2

Please sign in to comment.