diff --git a/res/Makefile b/res/Makefile
index 7e20f874f629fd4f77c41205d83535d1e10e85b6..b8756b17538bc8ab9b1d8e503de625b65c588c95 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -26,8 +26,8 @@ ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
   res_agi.so_LIBS:= -lres_speech.so
 endif
 
-res_pjsip_pubsub.so: LIBS+=-lpicoevent
-res_pjsip_outbound_registration.so: LIBS+=-lpicoevent
+res_pjsip_pubsub.so: LIBS+=-lubus -lubox -lpicoevent
+res_pjsip_outbound_registration.so: LIBS+=-lubus -lubox -lpicoevent
 
 res_config_ldap.o: _ASTCFLAGS+=-DLDAP_DEPRECATED