blob: 6024199991ae5ec8124ae343819000d72aa674f6 [file] [log] [blame]
https://github.com/libevent/libevent/pull/142
hack the build to generate a small libevent.so until we can sort out upstream
--- a/Makefile.in
+++ b/Makefile.in
@@ -157,10 +157,10 @@
evutil_rand.lo strlcpy.lo $(am__objects_8)
am__objects_10 = event_tagging.lo http.lo evdns.lo evrpc.lo
am_libevent_la_OBJECTS = $(am__objects_9) $(am__objects_10)
-libevent_la_OBJECTS = $(am_libevent_la_OBJECTS)
+libevent_la_OBJECTS = libevent_core.la libevent_extra.la
libevent_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(libevent_la_LDFLAGS) $(LDFLAGS) -o $@
+ $(libevent_la_LDFLAGS) $(LDFLAGS) -Wl,--no-as-needed -o $@
@INSTALL_LIBEVENT_FALSE@am_libevent_la_rpath =
@INSTALL_LIBEVENT_TRUE@am_libevent_la_rpath = -rpath $(libdir)
libevent_core_la_DEPENDENCIES = @LTLIBOBJS@ $(am__DEPENDENCIES_1)
@@ -529,7 +529,7 @@
Makefile.nmake test/Makefile.nmake \
$(PLATFORM_DEPENDENT_SRC)
-LIBEVENT_LIBS_LA = libevent.la libevent_core.la libevent_extra.la \
+LIBEVENT_LIBS_LA = libevent_core.la libevent_extra.la libevent.la \
$(am__append_1) $(am__append_3)
@INSTALL_LIBEVENT_TRUE@lib_LTLIBRARIES = $(LIBEVENT_LIBS_LA)
@INSTALL_LIBEVENT_TRUE@pkgconfig_DATA = $(LIBEVENT_PKGCONFIG)
--- a/libevent.pc.in
+++ b/libevent.pc.in
@@ -10,7 +10,7 @@
Version: @VERSION@
Requires:
Conflicts:
-Libs: -L${libdir} -levent
+Libs: -L${libdir} -levent_core -levent_extra
Libs.private: @LIBS@
Cflags: -I${includedir}