2015-04-21 01:51:37 +08:00
|
|
|
Adjust link order of libz to solve bug with static linking
|
|
|
|
and remove host paths when looking for openssl.
|
|
|
|
|
2015-06-19 00:46:07 +08:00
|
|
|
[Vincent:
|
|
|
|
- Adapt the patch to make it apply on the new version.]
|
2017-01-27 03:02:01 +08:00
|
|
|
[Bernd: rebased for tor-0.2.7.6, 0.2.8.10 & 0.2.9.9]
|
2015-06-19 00:46:07 +08:00
|
|
|
|
2015-04-21 01:51:37 +08:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2015-06-19 00:46:07 +08:00
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
2015-04-21 01:51:37 +08:00
|
|
|
|
2016-02-01 03:30:52 +08:00
|
|
|
diff -uNr tor-0.2.7.6.org/configure.ac tor-0.2.7.6/configure.ac
|
|
|
|
--- tor-0.2.7.6.org/configure.ac 2015-12-10 16:15:25.000000000 +0100
|
|
|
|
+++ tor-0.2.7.6/configure.ac 2016-01-31 20:21:34.850408145 +0100
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -612,11 +612,11 @@
|
2015-04-21 01:51:37 +08:00
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
-TOR_SEARCH_LIBRARY(openssl, $tryssldir, [-lssl -lcrypto $TOR_LIB_GDI],
|
|
|
|
+TOR_SEARCH_LIBRARY(openssl, $tryssldir, [-lssl -lcrypto -lz $TOR_LIB_GDI],
|
|
|
|
[#include <openssl/rand.h>],
|
|
|
|
[void RAND_add(const void *buf, int num, double entropy);],
|
2016-12-03 20:05:47 +08:00
|
|
|
[RAND_add((void*)0,0,0);], [],
|
2015-04-21 01:51:37 +08:00
|
|
|
- [/usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /opt/openssl])
|
|
|
|
+ [])
|
|
|
|
|
|
|
|
dnl XXXX check for OPENSSL_VERSION_NUMBER == SSLeay()
|
|
|
|
|
2016-02-01 03:30:52 +08:00
|
|
|
diff -uNr tor-0.2.7.6.org/src/or/include.am tor-0.2.7.6/src/or/include.am
|
|
|
|
--- tor-0.2.7.6.org/src/or/include.am 2015-12-08 18:35:17.000000000 +0100
|
|
|
|
+++ tor-0.2.7.6/src/or/include.am 2016-01-31 20:22:09.322777527 +0100
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -108,7 +108,7 @@
|
|
|
|
src_or_tor_LDADD = src/or/libtor.a src/common/libor.a src/common/libor-ctime.a \
|
|
|
|
src/common/libor-crypto.a $(LIBKECCAK_TINY) $(LIBDONNA) \
|
2016-02-01 03:30:52 +08:00
|
|
|
src/common/libor-event.a src/trunnel/libor-trunnel.a \
|
2015-04-21 01:51:37 +08:00
|
|
|
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
|
|
|
|
+ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
|
2015-06-19 00:46:07 +08:00
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@
|
2015-04-21 01:51:37 +08:00
|
|
|
|
|
|
|
if COVERAGE_ENABLED
|
2016-02-01 03:30:52 +08:00
|
|
|
diff -uNr tor-0.2.7.6.org/src/test/include.am tor-0.2.7.6/src/test/include.am
|
|
|
|
--- tor-0.2.7.6.org/src/test/include.am 2015-12-08 18:35:17.000000000 +0100
|
|
|
|
+++ tor-0.2.7.6/src/test/include.am 2016-01-31 20:25:59.673127854 +0100
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -177,8 +177,8 @@
|
|
|
|
src/common/libor-ctime-testing.a \
|
2016-12-03 20:05:47 +08:00
|
|
|
src/common/libor-event-testing.a \
|
|
|
|
src/trunnel/libor-trunnel-testing.a \
|
2015-04-21 01:51:37 +08:00
|
|
|
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
|
2015-06-19 00:46:07 +08:00
|
|
|
- @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
|
2015-04-21 01:51:37 +08:00
|
|
|
+ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
|
2015-06-19 00:46:07 +08:00
|
|
|
+ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
|
|
|
|
@TOR_SYSTEMD_LIBS@
|
2015-04-21 01:51:37 +08:00
|
|
|
|
2015-06-19 00:46:07 +08:00
|
|
|
src_test_test_slow_CPPFLAGS = $(src_test_test_CPPFLAGS)
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -200,8 +200,8 @@
|
|
|
|
src/common/libor-ctime.a \
|
|
|
|
src/common/libor-crypto.a $(LIBKECCAK_TINY) $(LIBDONNA) \
|
2016-02-01 03:30:52 +08:00
|
|
|
src/common/libor-event.a src/trunnel/libor-trunnel.a \
|
2015-04-21 01:51:37 +08:00
|
|
|
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
|
2015-06-19 00:46:07 +08:00
|
|
|
- @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
|
|
|
|
+ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
|
|
|
|
+ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \
|
|
|
|
@TOR_SYSTEMD_LIBS@
|
|
|
|
|
|
|
|
src_test_test_workqueue_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -211,8 +211,8 @@
|
|
|
|
src/common/libor-ctime-testing.a \
|
|
|
|
src/common/libor-crypto-testing.a $(LIBKECCAK_TINY) $(LIBDONNA) \
|
2015-06-19 00:46:07 +08:00
|
|
|
src/common/libor-event-testing.a \
|
|
|
|
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
|
2015-04-21 01:51:37 +08:00
|
|
|
- @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
|
|
|
+ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
|
|
|
|
+ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
|
|
|
|
2017-01-27 03:02:01 +08:00
|
|
|
src_test_test_timers_CPPFLAGS = $(src_test_test_CPPFLAGS)
|
|
|
|
src_test_test_timers_CFLAGS = $(src_test_test_CFLAGS)
|
|
|
|
@@ -245,8 +245,8 @@
|
2015-04-21 01:51:37 +08:00
|
|
|
src_test_test_ntor_cl_LDADD = src/or/libtor.a src/common/libor.a \
|
2017-01-27 03:02:01 +08:00
|
|
|
src/common/libor-ctime.a \
|
2016-12-03 20:05:47 +08:00
|
|
|
src/common/libor-crypto.a $(LIBKECCAK_TINY) $(LIBDONNA) \
|
2015-04-21 01:51:37 +08:00
|
|
|
- @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ \
|
|
|
|
- @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
|
|
|
+ @TOR_LIB_MATH@ \
|
|
|
|
+ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
|
|
|
src_test_test_ntor_cl_AM_CPPFLAGS = \
|
|
|
|
-I"$(top_srcdir)/src/or"
|
2016-02-01 03:30:52 +08:00
|
|
|
|
|
|
|
diff -uNr tor-0.2.7.6.org/src/tools/include.am tor-0.2.7.6/src/tools/include.am
|
|
|
|
--- tor-0.2.7.6.org/src/tools/include.am 2015-11-13 14:33:26.000000000 +0100
|
|
|
|
+++ tor-0.2.7.6/src/tools/include.am 2016-01-31 20:27:29.954004495 +0100
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -26,7 +26,7 @@
|
|
|
|
src/common/libor-ctime.a \
|
|
|
|
$(LIBKECCAK_TINY) \
|
2016-02-01 03:30:52 +08:00
|
|
|
$(LIBDONNA) \
|
2017-01-27 03:02:01 +08:00
|
|
|
- @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_OPENSSL_LIBS@ \
|
|
|
|
+ @TOR_LIB_MATH@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
|
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
2016-02-01 03:30:52 +08:00
|
|
|
|
|
|
|
if COVERAGE_ENABLED
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -39,7 +39,7 @@
|
|
|
|
src/common/libor-ctime-testing.a \
|
|
|
|
$(LIBKECCAK_TINY) \
|
2016-02-01 03:30:52 +08:00
|
|
|
$(LIBDONNA) \
|
2017-01-27 03:02:01 +08:00
|
|
|
- @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_OPENSSL_LIBS@ \
|
|
|
|
+ @TOR_LIB_MATH@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
|
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
2016-02-01 03:30:52 +08:00
|
|
|
endif
|
2015-04-21 01:51:37 +08:00
|
|
|
|
2017-01-27 03:02:01 +08:00
|
|
|
@@ -50,7 +50,7 @@
|
|
|
|
src/common/libor-crypto.a \
|
|
|
|
$(LIBKECCAK_TINY) \
|
2016-02-01 03:30:52 +08:00
|
|
|
$(LIBDONNA) \
|
2017-01-27 03:02:01 +08:00
|
|
|
- @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_OPENSSL_LIBS@ \
|
|
|
|
+ @TOR_LIB_MATH@ @TOR_OPENSSL_LIBS@ @TOR_ZLIB_LIBS@ \
|
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
|
2015-04-21 01:51:37 +08:00
|
|
|
|
2016-02-01 03:30:52 +08:00
|
|
|
EXTRA_DIST += src/tools/tor-fw-helper/README
|