Skip to content

Commit

Permalink
Only windows should use 'shell32.lib' a linker arg
Browse files Browse the repository at this point in the history
  • Loading branch information
zv committed Feb 7, 2019
1 parent d862533 commit 5220a95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python
import os
import sys

from setuptools import setup, Extension
sources = [
'src/python/core.c',
Expand Down Expand Up @@ -32,7 +34,7 @@
sources=sources,
depends=depends,
extra_compile_args=["-Isrc/", "-std=gnu99"],
extra_link_args=["shell32.lib"])
extra_link_args=["shell32.lib"] if sys.platform.startswith("win") else [])

setup(
name='pyethash',
Expand Down

0 comments on commit 5220a95

Please sign in to comment.