Do a full link test for rs_sig_args

This commit is contained in:
Kovid Goyal 2021-09-18 11:44:11 +05:30
parent 7cf73c10ac
commit 76d6820af9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -278,7 +278,7 @@ def detect_librsync(cc: str, cflags: List[str], ldflags: List[str]) -> None:
src='#include <librsync.h>\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 <librsync.h>
int main(void) {
rs_magic_number magic_number = 0;