Skip to content

Commit

Permalink
[setup] link against "libcrypto" on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Mar 30, 2020
1 parent 770e56f commit f798e62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
with open(readme_file, encoding="utf-8") as f:
long_description = f.read()

extra_compile_args = []
if sys.platform != "win32":
if sys.platform == "win32":
extra_compile_args = []
libraries = ["libcrypto"]
else:
extra_compile_args = ["-std=c99"]
libraries = ["crypto"]

setuptools.setup(
name=about["__title__"],
Expand Down Expand Up @@ -50,7 +53,7 @@
setuptools.Extension(
"aioquic._crypto",
extra_compile_args=extra_compile_args,
libraries=["crypto"],
libraries=libraries,
sources=["src/aioquic/_crypto.c"],
),
],
Expand Down

0 comments on commit f798e62

Please sign in to comment.