--- a/plugins/python-loader/Makefile.in
+++ b/plugins/python-loader/Makefile.in
@@ -321,7 +321,7 @@
 LD = @LD@
 LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ -lpython@PYTHON_VERSION@
 LIBSPREADSHEET_CFLAGS = @LIBSPREADSHEET_CFLAGS@
 LIBSPREADSHEET_LIBS = @LIBSPREADSHEET_LIBS@
 LIBTOOL = @LIBTOOL@
