--- Makefile.am 2010-12-16 18:38:34.000000000 +0100 +++ Makefile.am.oden 2010-12-22 12:17:28.661758897 +0100 @@ -185,16 +185,16 @@ if PTHREADS libevent_pthreads_la_SOURCES = evthread_pthread.c -libevent_pthreads_la_LDFLAGS = $(GENERIC_LDFLAGS) +libevent_pthreads_la_LDFLAGS = $(GENERIC_LDFLAGS) libevent_core.la endif libevent_extra_la_SOURCES = $(EXTRA_SRC) libevent_extra_la_LIBADD = $(MAYBE_CORE) $(SYS_LIBS) -libevent_extra_la_LDFLAGS = $(GENERIC_LDFLAGS) +libevent_extra_la_LDFLAGS = $(GENERIC_LDFLAGS) libevent_core.la if OPENSSL libevent_openssl_la_SOURCES = bufferevent_openssl.c -libevent_openssl_la_LIBADD = $(MAYBE_CORE) -lcrypto -lssl +libevent_openssl_la_LIBADD = $(MAYBE_CORE) libevent_core.la -lcrypto -lssl libevent_openssl_la_LDFLAGS = $(GENERIC_LDFLAGS) endif