Skip to content
Snippets Groups Projects
Commit fe9cfeba authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix libevent linking on openbsd.

Closes ticket 19902; bugfix on 0.2.9.1-alpha; patch from rubiate
parent f3cda327
No related branches found
No related tags found
No related merge requests found
o Major bugfixes (compilation, OpenBSD):
- Fix a Libevent-detection bug in our autoconf script that would
prevent Tor from linking successfully on OpenBSD. Patch from
rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
......@@ -501,6 +501,8 @@ AC_CHECK_FUNCS([evutil_secure_rng_set_urandom_device_file \
evutil_secure_rng_add_bytes \
])
AC_CHECK_HEADERS(event2/event.h event2/dns.h event2/bufferevent_ssl.h)
LIBS="$STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32 $save_LIBS"
if test "$enable_static_libevent" = "yes"; then
......@@ -521,7 +523,7 @@ else
TOR_LIBEVENT_LIBS="$ac_cv_search_evdns_base_new $TOR_LIBEVENT_LIBS"
fi
else
TOR_LIBEVENT_LIBS="-levent"
AC_MSG_ERROR("libevent2 is required but the headers could not be found")
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment