Switch to side-by-side view

--- a/src/qtgui/recoll.pro.in
+++ b/src/qtgui/recoll.pro.in
@@ -80,16 +80,17 @@
   UI_DIR = .ui
   MOC_DIR = .moc
   OBJECTS_DIR = .obj
-
-  LIBS += ../lib/librcl.a \
-       $(BSTATIC) @LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) @LIBICONV@ $(BDYNAMIC) \
-           @LIBQZEITGEIST@ -lz
+  # Expanding prefix here is not good as it means that it can't be
+  # redefined at make time.
+  LIBS += $(BSTATIC) -L../lib -lrecoll -Wl,-rpath=@prefix@/lib \
+       @LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
+       @LIBICONV@ $(BDYNAMIC) @LIBQZEITGEIST@ -lz
 
   INCLUDEPATH += ../common ../index ../internfile ../query ../unac \
               ../utils ../aspell ../rcldb ../qtgui \
               confgui
   DEPENDPATH += $$INCLUDEPATH
-  POST_TARGETDEPS = ../lib/librcl.a
+  POST_TARGETDEPS = ../lib/librecoll.a
 }
 
 UNAME = $$system(uname -s)