diff --git a/third-party/pjproject/patches/0000-configure-ssl-library-path.patch b/third-party/pjproject/patches/0000-configure-ssl-library-path.patch
new file mode 100644
index 0000000000000000000000000000000000000000..0ec0e7a0e33d5b524c39323259015a65fad2c5a6
--- /dev/null
+++ b/third-party/pjproject/patches/0000-configure-ssl-library-path.patch
@@ -0,0 +1,18 @@
+--- a/aconfigure.ac	(PJSIP 2.7.2)
++++ b/aconfigure.ac	(working copy)
+@@ -1571 +1571,5 @@
+-                    LDFLAGS="$LDFLAGS -L$with_ssl/lib"
++                    if test -d $with_ssl/lib; then
++                        LDFLAGS="$LDFLAGS -L$with_ssl/lib"
++                    else
++                        LDFLAGS="$LDFLAGS -L$with_ssl"
++                    fi
+--- a/aconfigure	(PJSIP 2.7.2)
++++ b/aconfigure	(working copy)
+@@ -7884 +7884,5 @@
+-                    LDFLAGS="$LDFLAGS -L$with_ssl/lib"
++                    if test -d $with_ssl/lib; then
++                        LDFLAGS="$LDFLAGS -L$with_ssl/lib"
++                    else
++                        LDFLAGS="$LDFLAGS -L$with_ssl"
++                    fi