diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ import platform
 from distutils.core import setup, Extension
 
 _faststat = Extension('_faststat', sources=['faststat/_faststat.c'], 
-                      extra_link_args=['-lrt'])
+                      libraries=('rt',), extra_link_args=['-lrt'], extra_compile_args=['-lrt'])
 
 setup(
     name='faststat',
got extension building working .... sort of