diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -70,7 +70,7 @@ else:
     platform__cc_defines=[('PCSCLITE', '1')]
     platform_swig_opts=['-DPCSCLITE']
     platform_sources=[]
-    platform_libraries=[]
+    platform_libraries=["python%d.%d" % sys.version_info[:2]]
     platform_include_dirs=['/usr/include/PCSC']
     platform_extra_compile_args=[]#['-ggdb', '-O0']
     platform_extra_link_args=[]#['-ggdb']
link against pythonx.y on GNU/Linux to avoid missing symbols in the generated _scard.so library