]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pjproject_bundled: Find shared libraries in root --with-ssl=PATH.
authorAlexander Traud <pabstraud@compuserve.com>
Mon, 30 Jul 2018 11:05:34 +0000 (13:05 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Fri, 3 Aug 2018 14:19:41 +0000 (09:19 -0500)
The script configure from Teluu expects shared libraries (.so) in a subfolder
called 'lib', when --with-xyz=PATH is specified. However for OpenSSL, the
default location is the root of the source folder = PATH. Furthermore, Asterisk
supports both, 'lib' and root. For consistency and because Asterisk is using
(only) OpenSSL in PJProject, it is enhanced to support both locations, just
like Asterisk.

ASTERISK-27995

Change-Id: I8eb916a88b6b8c22e29bb40bee8faaca6c73406f

third-party/pjproject/patches/0000-configure-ssl-library-path.patch [new file with mode: 0644]

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 (file)
index 0000000..0ec0e7a
--- /dev/null
@@ -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