--enable-static-tor barfs on openbsd 'cause it tries to link in -lrt which doesn't exist
CFLAGS=" -g -O0" ./configure --with-libevent-dir=/home/SCRUBBED/lib --prefix=/ --enable-static-tor fails with
checking for libevent directory... configure: WARNING: Could not find a linkable libevent. If you have it installed somewhere unusual, you can specify an explicit path using --with-libevent-dir
Looking at the config.log we see:
configure:6383: gcc -o conftest -g -O0 -static -I/home/irene/lib -I${top_srcdir}/src/common -L/home/SCRUBBED/lib conftest.c -lpthread -levent -lrt >&5
/usr/bin/ld: cannot find -lrt
which causes the error, because there isn't a librt on openbsd. Indeed, removing the " -lrt" in configure makes all work.
STATIC_LIBEVENT_FLAGS=""
if test "$enable_static_libevent" = "yes"; then
if test "$have_rt" = yes; then
STATIC_LIBEVENT_FLAGS=" -lrt"
fi
fi
Trac:
Username: therealditzydoo