From 3ec0d14140dc086ce40a5f5b67338a8c9a9ab08f Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 24 Sep 2018 18:33:34 -0500 Subject: [PATCH] gcc7: more options for musl --- pkgs/development/compilers/gcc/7/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/7/default.nix b/pkgs/development/compilers/gcc/7/default.nix index 4dfbcf0f545..2dd919d978f 100644 --- a/pkgs/development/compilers/gcc/7/default.nix +++ b/pkgs/development/compilers/gcc/7/default.nix @@ -292,7 +292,12 @@ stdenv.mkDerivation ({ # On Illumos/Solaris GNU as is preferred "--with-gnu-as" "--without-gnu-ld" ] - ++ optional (targetPlatform == hostPlatform && targetPlatform.libc == "musl") "--disable-libsanitizer" + ++ optionals (targetPlatform == hostPlatform && targetPlatform.libc == "musl") [ + "--disable-libsanitizer" + "--disable-symvers" + "libat_cv_have_ifunc=no" + "--disable-gnu-indirect-function" + ] ++ optional (targetPlatform.isAarch64) "--enable-fix-cortex-a53-843419" ;