diff --git a/src/bindings/python/SConscript b/src/bindings/python/SConscript
index 29d1ad96cc38209861fb3cec662c3156f71b93db..2b1c4cc1762f995de079baab42efe1f43bf2988d 100644
--- a/src/bindings/python/SConscript
+++ b/src/bindings/python/SConscript
@@ -5,6 +5,8 @@ pythonenv = env.Clone()
 
 pythonenv.Append(CPPPATH = ['../../', '/usr/include/python2.7'])
 pythonenv.Append(CCFLAGS = ['-fpic', '-DSWIG', '-Wno-all', '-Wno-extra', '-Wno-error'])
+pythonenv.Append(LIBS = ['hammer'])
+pythonenv.Append(LIBPATH = ['../../'])
 pythonenv.Append(SWIGFLAGS = ['-DHAMMER_INTERNAL__NO_STDARG_H', '-Isrc/', '-python'])
 
 pythonenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE"))