--- a/src/qtgui/recoll.pro.in
+++ b/src/qtgui/recoll.pro.in
@@ -83,8 +83,13 @@
   # Note: libdir may be substituted with sthing like $(exec_prefix)/lib
   # at this point and will go as such in the Makefile. Expansion will be
   # completed at make time.
-  LIBS += $(BSTATIC) -L../lib -lrecoll -Wl,-rpath=@libdir@/recoll \
-       @LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
+  LIBS += $(BSTATIC) -L../lib -lrecoll
+
+  !macx {
+    LIBS += -Wl,-rpath=@libdir@/recoll
+  }
+
+  LIBS +=  @LIBXAPIAN@ $(LIBXAPIANSTATICEXTRA) \
        @LIBICONV@ $(BDYNAMIC) @LIBQZEITGEIST@ -lz
 
   INCLUDEPATH += ../common ../index ../internfile ../query ../unac \
@@ -103,6 +108,10 @@
           LIBS += -ldl
 }
 
+macx {
+    ICON = images/recoll.icns
+}
+
 TRANSLATIONS = \
 	     i18n/recoll_cs.ts \
 	     i18n/recoll_de.ts \