diff --git a/src/qtgui/recoll.pro.in b/src/qtgui/recoll.pro.in
index f69aaa27..218c89b2 100644
--- qtgui/recoll.pro.in
+++ qtgui/recoll.pro.in
@@ -148,6 +148,7 @@ contains( UNAME, SunOS ) {
 
 macx {
     ICON = images/recoll.icns
+    LIBS += @@STDLIB@@
 }
 
 TRANSLATIONS = \
