From d485d487ea904afe973284762cf6c0d4f662b053 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 16 Jul 2023 17:51:04 +0530 Subject: [PATCH] Use pkg_config for xxhash flags --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 062e7df2f..a536d9694 100755 --- a/setup.py +++ b/setup.py @@ -808,7 +808,7 @@ def compile_kittens(args: Options) -> None: return kitten, sources, headers, f'kittens/{kitten}/{output}', includes, libraries for kitten, sources, all_headers, dest, includes, libraries in ( - files('transfer', 'rsync', libraries=('xxhash',)), + files('transfer', 'rsync', libraries=pkg_config('libxxhash', '--libs'), includes=pkg_config('libxxhash', '--cflags-only-I')), ): final_env = kenv.copy() final_env.cflags.extend(f'-I{x}' for x in includes)