--- a/src/python/recoll/Makefile
+++ b/src/python/recoll/Makefile
@@ -1,5 +1,6 @@
 all:
-	python setup.py build
+	echo libdir: $(libdir)
+	libdir=$(libdir) python setup.py build
 install:
 	sudo python setup.py install
 clean: