libglvnd: disable asm on aarch64-darwin

libglvnd itself doesn't know about `aarch64-darwin`, so it tries
to use assembly that is not supported by mach-o, failing as a result.
This commit is contained in:
Ivan Babrou 2021-02-09 10:39:04 -08:00
parent 3a2195b750
commit ef13a2129b

View File

@ -35,8 +35,11 @@ stdenv.mkDerivation rec {
"-Wno-error=array-bounds" "-Wno-error=array-bounds"
] ++ lib.optional stdenv.cc.isClang "-Wno-error"); ] ++ lib.optional stdenv.cc.isClang "-Wno-error");
# Indirectly: https://bugs.freedesktop.org/show_bug.cgi?id=35268 configureFlags = []
configureFlags = lib.optional stdenv.hostPlatform.isMusl "--disable-tls"; # Indirectly: https://bugs.freedesktop.org/show_bug.cgi?id=35268
++ lib.optional stdenv.hostPlatform.isMusl "--disable-tls"
# Remove when aarch64-darwin asm support is upstream: https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/216
++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) "--disable-asm";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];