diff --git a/curl_cffi/build.py b/curl_cffi/build.py index fe240cf5..67e047b5 100644 --- a/curl_cffi/build.py +++ b/curl_cffi/build.py @@ -17,7 +17,8 @@ library_dirs=[ "/Users/runner/work/_temp/install/lib" if uname.system == "Darwin" and uname.machine == "x86_64" - else "./lib" if uname.system == "Windows" + else "./lib" + if uname.system == "Windows" else "/usr/local/lib" # Linux and macOS arm64 ], source_extension=".c", @@ -28,7 +29,9 @@ sources=[ os.path.join(os.path.dirname(__file__), "ffi/shim.c"), ], - extra_compile_args=["-Wno-implicit-function-declaration"], + extra_compile_args=( + ["-Wno-implicit-function-declaration"] if uname.system == "Darwin" else [] + ), # extra_link_args=["-Wl,-rpath,$ORIGIN/../libcurl/" + arch], )