@@ -113,7 +113,8 @@ stdenv.mkDerivation rec {
113113 configureFlags = [
114114 "--with-gmp-libraries=${stdenv.lib.getLib gmp}/lib"
115115 "--with-gmp-includes=${stdenv.lib.getDev gmp}/include"
116− ] ++ stdenv.lib.optional stdenv.isDarwin "--with-gcc=${./gcc-clang-wrapper.sh}";
116+ ] ++ stdenv.lib.optional stdenv.isDarwin "--with-gcc=${./gcc-clang-wrapper.sh}"
117+ ++ stdenv.lib.optional stdenv.hostPlatform.isMusl "--disable-ld-override";
117118
118119 # Stripping combined with patchelf breaks the executables (they die
119120 # with a segfault or the kernel even refuses the execve). (NIXPKGS-85)