package/tor: fix static build with openssl
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 3 Mar 2019 08:47:19 +0000 (09:47 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 3 Mar 2019 19:37:14 +0000 (20:37 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/102796d74e63d0d203e6ac9e2094052588188e6d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tor/0001-Fix-static-linking-with-OpenSSL.patch

index 516dc16da3628d83e2c18a8f2f16eca7c8b499cd..50ea00af7a06db5db0cc9cb77f04565c583c3113 100644 (file)
@@ -10,13 +10,15 @@ and remove host paths when looking for openssl.
  - Adapt the patch to make it apply on the new version.]
 [Bernd: rebased for tor-0.2.7.6, 0.2.8.10, 0.2.9.9, 0.3.1.7, 0.3.2.10 &
         0.3.4.8, 0.3.5.7]
+[Fabrice: fix detection of openssl functions in 0.3.5.8]
 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
 ---
- configure.ac         | 2 +-
+ configure.ac         | 4 ++--
  src/test/include.am  | 8 ++++----
  src/tools/include.am | 4 ++--
- 3 files changed, 7 insertions(+), 7 deletions(-)
+ 3 files changed, 8 insertions(+), 8 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
 index 05e1392cf..580befa6b 100644
@@ -31,6 +33,15 @@ index 05e1392cf..580befa6b 100644
      [#include <openssl/ssl.h>
       char *getenv(const char *);],
      [struct ssl_cipher_st;
+@@ -919,7 +919,7 @@ dnl Now check for particular openssl functions.
+ save_LIBS="$LIBS"
+ save_LDFLAGS="$LDFLAGS"
+ save_CPPFLAGS="$CPPFLAGS"
+-LIBS="$TOR_OPENSSL_LIBS $LIBS"
++LIBS="$TOR_OPENSSL_LIBS -lz $LIBS"
+ LDFLAGS="$TOR_LDFLAGS_openssl $LDFLAGS"
+ CPPFLAGS="$TOR_CPPFLAGS_openssl $CPPFLAGS"
 diff --git a/src/test/include.am b/src/test/include.am
 index ecb768957..39a622e88 100644
 --- a/src/test/include.am