Index: gnucash-2.7.0/gnucash/gnome-utils/CMakeLists.txt
===================================================================
--- gnucash-2.7.0.orig/gnucash/gnome-utils/CMakeLists.txt
+++ gnucash-2.7.0/gnucash/gnome-utils/CMakeLists.txt
@@ -212,7 +212,7 @@ ADD_LIBRARY (gncmod-gnome-utils
 )
 
 TARGET_LINK_LIBRARIES(gncmod-gnome-utils gncmod-app-utils gncmod-engine gnc-backend-xml-utils
-     ${GTK3_LDFLAGS} ${GTK_MAC_LDFLAGS})
+     ${GTK3_LDFLAGS} -lX11 -lsecret-1 ${GTK_MAC_LDFLAGS})
 
 TARGET_COMPILE_DEFINITIONS(gncmod-gnome-utils PUBLIC ${GTK_MAC_CFLAGS_OTHER}
     PRIVATE -DG_LOG_DOMAIN=\"gnc.gui\")
     