mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
glibc: Fix build error due to warning with musl. Fixes #78805
This commit is contained in:
parent
85a9743f13
commit
8ef2c51d06
|
@ -54,9 +54,10 @@ callPackage ./common.nix { inherit stdenv; } {
|
||||||
# Fix -Werror build failure when building glibc with musl with GCC >= 8, see:
|
# Fix -Werror build failure when building glibc with musl with GCC >= 8, see:
|
||||||
# https://github.com/NixOS/nixpkgs/pull/68244#issuecomment-544307798
|
# https://github.com/NixOS/nixpkgs/pull/68244#issuecomment-544307798
|
||||||
(stdenv.lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias")
|
(stdenv.lib.optional stdenv.hostPlatform.isMusl "-Wno-error=attribute-alias")
|
||||||
(stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
(stdenv.lib.optionals ((stdenv.hostPlatform != stdenv.buildPlatform) || stdenv.hostPlatform.isMusl) [
|
||||||
# Ignore "error: '__EI___errno_location' specifies less restrictive attributes than its target '__errno_location'"
|
# Ignore "error: '__EI___errno_location' specifies less restrictive attributes than its target '__errno_location'"
|
||||||
# New warning as of GCC 9
|
# New warning as of GCC 9
|
||||||
|
# Same for musl: https://github.com/NixOS/nixpkgs/issues/78805
|
||||||
"-Wno-error=missing-attributes"
|
"-Wno-error=missing-attributes"
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue