Skip to content

Commit f28eea4

Browse files
committedMay 16, 2021
libgcc: use glibc major and minor version but not the patch level
libgcc requires the version scheme X.Y whilst our glibc version attribute usually is X.Y-Z where Z is our patchlevel.
1 parent 20acd4c commit f28eea4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎pkgs/development/libraries/gcc/libgcc/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ stdenvNoLibs.mkDerivation rec {
129129

130130
"--with-system-zlib"
131131
] ++ lib.optional (stdenvNoLibs.hostPlatform.libc == "glibc")
132-
"--with-glibc-version=${glibc.version}";
132+
# 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)}";
133134

134135
configurePlatforms = [ "build" "host" ];
135136
configureFlags = [

0 commit comments

Comments
 (0)