1 Adjust link order of libz to solve bug with static linking
2 and remove host paths when looking for openssl.
5 - Adapt the patch to make it apply on the new version.]
6 [Bernd: rebased for tor-0.2.7.6, 0.2.8.10 & 0.2.9.9]
8 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11 diff -uNr tor-0.2.7.6.org/configure.ac tor-0.2.7.6/configure.ac
12 --- tor-0.2.7.6.org/configure.ac 2015-12-10 16:15:25.000000000 +0100
13 +++ tor-0.2.7.6/configure.ac 2016-01-31 20:21:34.850408145 +0100
18 -TOR_SEARCH_LIBRARY(openssl, $tryssldir, [-lssl -lcrypto $TOR_LIB_GDI],
19 +TOR_SEARCH_LIBRARY(openssl, $tryssldir, [-lssl -lcrypto -lz $TOR_LIB_GDI],
20 [#include <openssl/rand.h>],
21 [void RAND_add(const void *buf, int num, double entropy);],
22 [RAND_add((void*)0,0,0);], [],
23 - [/usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /opt/openssl])
26 dnl XXXX check for OPENSSL_VERSION_NUMBER == SSLeay()
28 diff -uNr tor-0.2.7.6.org/src/or/include.am tor-0.2.7.6/src/or/include.am
29 --- tor-0.2.7.6.org/src/or/include.am 2015-12-08 18:35:17.000000000 +0100
30 +++ tor-0.2.7.6/src/or/include.am 2016-01-31 20:22:09.322777527 +0100
32 src_or_tor_LDADD = src/or/libtor.a src/common/libor.a src/common/libor-ctime.a \
33 src/common/libor-crypto.a $(LIBKECCAK_TINY) $(LIBDONNA) \
34 src/common/libor-event.a src/trunnel/libor-trunnel.a \
35 - @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
36 + @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
37 @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@
40 diff -uNr tor-0.2.7.6.org/src/test/include.am tor-0.2.7.6/src/test/include.am
41 --- tor-0.2.7.6.org/src/test/include.am 2015-12-08 18:35:17.000000000 +0100
42 +++ tor-0.2.7.6/src/test/include.am 2016-01-31 20:25:59.673127854 +0100
44 src/common/libor-ctime-testing.a \
45 src/common/libor-event-testing.a \
46 src/trunnel/libor-trunnel-testing.a \
47 - @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
48 - @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
49 + @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
50 + @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
53 src_test_test_slow_CPPFLAGS = $(src_test_test_CPPFLAGS)
55 src/common/libor-ctime.a \
56 src/common/libor-crypto.a $(LIBKECCAK_TINY) $(LIBDONNA) \
57 src/common/libor-event.a src/trunnel/libor-trunnel.a \
58 - @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
59 - @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
60 + @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
61 + @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
64 src_test_test_workqueue_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
66 src/common/libor-ctime-testing.a \
67 src/common/libor-crypto-testing.a $(LIBKECCAK_TINY) $(LIBDONNA) \
68 src/common/libor-event-testing.a \
69 - @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
70 - @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
71 + @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
72 + @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
74 src_test_test_timers_CPPFLAGS = $(src_test_test_CPPFLAGS)
75 src_test_test_timers_CFLAGS = $(src_test_test_CFLAGS)
77 src_test_test_ntor_cl_LDADD = src/or/libtor.a src/common/libor.a \
78 src/common/libor-ctime.a \
79 src/common/libor-crypto.a $(LIBKECCAK_TINY) $(LIBDONNA) \
80 - @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ \
81 - @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
83 + @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
84 src_test_test_ntor_cl_AM_CPPFLAGS = \
85 -I"$(top_srcdir)/src/or"
87 diff -uNr tor-0.2.7.6.org/src/tools/include.am tor-0.2.7.6/src/tools/include.am
88 --- tor-0.2.7.6.org/src/tools/include.am 2015-11-13 14:33:26.000000000 +0100
89 +++ tor-0.2.7.6/src/tools/include.am 2016-01-31 20:27:29.954004495 +0100
91 src/common/libor-ctime.a \
94 - @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_OPENSSL_LIBS@ \
95 + @TOR_LIB_MATH@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
96 @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
100 src/common/libor-ctime-testing.a \
103 - @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_OPENSSL_LIBS@ \
104 + @TOR_LIB_MATH@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
105 @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
109 src/common/libor-crypto.a \
112 - @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_OPENSSL_LIBS@ \
113 + @TOR_LIB_MATH@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
114 @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
116 EXTRA_DIST += src/tools/tor-fw-helper/README