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.
This commit is contained in:
Fabian Möller 2023-01-11 17:28:46 +01:00 committed by Emery Hemingway
parent 2de90e2e84
commit 7c1096ab99

View file

@ -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;