diff --git a/README.md b/README.md
index 9e48792bba3eb4dd965ee7bb0dfc4f5c3040c7d7..13ff0f1e311e971f30c89ab181df61c41bbb0a30 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,23 @@ Currently the only solution is to set the password of `login` keyring to empty.
 
 I encrypt the `keyring-name : password` pair with GnuPG and save it as `secret-file`. Then on starting gnome, you have yubikey inserted. Then an auto-started script call GnuPG to decrypt the secret file, and pipe use the password to unlock your keyring. GnuPG will ask you to insert yubikey.
 
+## Dependencies
+The project uses libgnome-keyring-dev
+
+### Ubuntu 20.04
+libgnome-keyring-dev is not in the repositories, you have to install it and its dependencies manually:
+```
+wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1_amd64.deb
+wget http://security.ubuntu.com/ubuntu/pool/universe/libg/libgnome-keyring/libgnome-keyring-common_3.12.0-1build1_all.deb
+wget http://security.ubuntu.com/ubuntu/pool/universe/libg/libgnome-keyring/libgnome-keyring0_3.12.0-1build1_amd64.deb
+wget http://security.ubuntu.com/ubuntu/pool/universe/libg/libgnome-keyring/gir1.2-gnomekeyring-1.0_3.12.0-1build1_amd64.deb
+wget http://security.ubuntu.com/ubuntu/pool/universe/libg/libgnome-keyring/libgnome-keyring-dev_3.12.0-1build1_amd64.deb
+
+sudo dpkg -i multiarch-support_2.27-3ubuntu1_amd64.deb
+sudo dpkg-reconfigure multiarch-support
+sudo dpkg -i libgnome-keyring-common_3.12.0-1build1_all.deb libgnome-keyring0_3.12.0-1build1_amd64.deb gir1.2-gnomekeyring-1.0_3.12.0-1build1_amd64.deb libgnome-keyring-dev_3.12.0-1build1_amd64.deb
+```
+
 ## Usage
 
 > I recommend you to **configure Yubikey as GPG smartcard**. The system would just ask you to unlock gnome-keyring with your default GPG software. You may generate a new GPG key for yubikey, or move your existing GPG key into yubikey. Refer to google for these knowledge. 
diff --git a/src/Makefile b/src/Makefile
index a651889dff5a41f40eb49ba6669c7088741ebf43..5ee5a0790d920f0d3d0137d9841876b58db1a2c0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,5 +6,5 @@ EXTRA_FLAGS ?=
 
 secret:
 	mkdir -p ../bin/
-	$(CXX) $(CXXFLAGS) $(EXTRA_FLAGS) unlock_keyrings.cc -o ../bin/unlock_keyrings
+	$(CXX)  unlock_keyrings.cc -o ../bin/unlock_keyrings $(CXXFLAGS) $(EXTRA_FLAGS)
 
diff --git a/tools/list_keyrings.sh b/tools/list_keyrings.sh
index bb206f4960ea761fd97069dc512091be50ed448e..03166f1ea45b218d3689101e0b5d160cdd74c7d0 100755
--- a/tools/list_keyrings.sh
+++ b/tools/list_keyrings.sh
@@ -1,4 +1,5 @@
 #!/bin/bash
-eval g++ $(pkg-config --cflags --libs gnome-keyring-1) list_keyrings.cc -o list.out &&
+cd $(dirname $0) &&
+eval g++ list_keyrings.cc -o list.out -Wno-deprecated-declarations $(pkg-config --cflags --libs gnome-keyring-1) &&
 ./list.out