]> granicus.if.org Git - libevent/commitdiff
Create shared libraries under Windows
authorGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 12 Apr 2010 10:52:31 +0000 (12:52 +0200)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Apr 2010 06:01:04 +0000 (02:01 -0400)
Makefile.am

index 2374fc28ca7c686d16a109b134dc969210a6a73c..303af1d9b84c284356808e1961eb33eae4f87555 100644 (file)
@@ -131,24 +131,24 @@ EXTRA_SRC = event_tagging.c http.c evdns.c evrpc.c
 
 libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
 libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
-libevent_la_LDFLAGS = -version-info $(VERSION_INFO)
+libevent_la_LDFLAGS = -version-info $(VERSION_INFO) -no-undefined
 
 libevent_core_la_SOURCES = $(CORE_SRC)
 libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
-libevent_core_la_LDFLAGS = -version-info $(VERSION_INFO)
+libevent_core_la_LDFLAGS = -version-info $(VERSION_INFO) -no-undefined
 
 if PTHREADS
 libevent_pthreads_la_SOURCES = evthread_pthread.c
 endif
 
 libevent_extra_la_SOURCES = $(EXTRA_SRC)
-libevent_extra_la_LIBADD =
-libevent_extra_la_LDFLAGS = -version-info $(VERSION_INFO)
+libevent_extra_la_LIBADD = libevent_core.la $(SYS_LIBS)
+libevent_extra_la_LDFLAGS = -version-info $(VERSION_INFO) -no-undefined
 
 if OPENSSL
 libevent_openssl_la_SOURCES = bufferevent_openssl.c
-libevent_openssl_la_LIBADD = -lcrypto -lssl
-libevent_openssl_la_LDFLAGS = -version-info $(VERSION_INFO)
+libevent_openssl_la_LIBADD = libevent_core.la -lcrypto -lssl
+libevent_openssl_la_LDFLAGS = -version-info $(VERSION_INFO) -no-undefined
 endif
 
 noinst_HEADERS = util-internal.h mm-internal.h ipv6-internal.h \