From 76d6820af9498c73a7cd8daeadef09e411cb5b4b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Sep 2021 11:44:11 +0530 Subject: [PATCH] Do a full link test for rs_sig_args --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6abcd2ada..90d4c8c48 100755 --- a/setup.py +++ b/setup.py @@ -278,7 +278,7 @@ def detect_librsync(cc: str, cflags: List[str], ldflags: List[str]) -> None: src='#include \nint main(void) { rs_strerror(0); return 0; }'): raise SystemExit('The librsync library is required') # check for rs_sig_args() which was added to librsync in Apr 2020 version 2.3.0 - if test_compile(cc, *cflags, link_also=False, src=''' + if test_compile(cc, *cflags, libraries=('rsync',), ldflags=ldflags, src=''' #include int main(void) { rs_magic_number magic_number = 0;