diff options
author | Fabian Möller <fabianm88@gmail.com> | 2023-01-11 17:28:46 +0100 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2023-01-16 10:51:05 -0600 |
commit | 7c1096ab995f8a75b794b1f4ac841ea6caa7a120 (patch) | |
tree | 87bb7ca9d178543ed40d6aaae91475d75697dc52 /pkgs/applications/networking/sync | |
parent | 2de90e2e841f15ed1ee7556a36d2fbb6dae540d4 (diff) |
rsync: fix build with musl
The rsync build tries to use IFUNC for SIMD optimizations on x86_64, which has to be disabled for musl.
Diffstat (limited to 'pkgs/applications/networking/sync')
-rw-r--r-- | pkgs/applications/networking/sync/rsync/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/networking/sync/rsync/default.nix b/pkgs/applications/networking/sync/rsync/default.nix index 52ff6a5c108ac..d1a304f44001f 100644 --- a/pkgs/applications/networking/sync/rsync/default.nix +++ b/pkgs/applications/networking/sync/rsync/default.nix @@ -43,6 +43,9 @@ stdenv.mkDerivation rec { # disable the included zlib explicitly as it otherwise still compiles and # links them even. "--with-included-zlib=no" + ] ++ lib.optionals (stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isx86_64) [ + # fix `multiversioning needs 'ifunc' which is not supported on this target` error + "--disable-roll-simd" ]; enableParallelBuilding = true; |