glibc: Fix build with gcc-15

This commit is contained in:
Dmitry Bogatov
2025-06-27 20:00:00 -04:00
parent 351b2b10c2
commit 2a9a83e489
@@ -162,6 +162,15 @@ stdenv.mkDerivation (
-#define LIBIDN2_SONAME "libidn2.so.0"
+#define LIBIDN2_SONAME "${lib.getLib libidn2}/lib/libidn2.so.0"
EOF
''
# For some reason, with gcc-15 build fails with the following error:
#
# zic.c:3767:1: note: did you mean to specify it after ')' following function parameters?
# zic.c:3781:1: error: standard 'reproducible' attribute can only be applied to function declarators or type specifiers with function type []
+ ''
for path in timezone/zic.c timezone/zdump.c ; do
substituteInPlace $path --replace-fail "ATTRIBUTE_REPRODUCIBLE" ""
done
'';
configureFlags =