1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
From: Leo 'costela' Antunes <costela@debian.org>
Subject: always build with -no-undefined
This seems to be the easiest way to patch the build-system, so that
all libs get linked to _core and -no-undefined gets passed to libtool.
Will discuss with upstream what's the reason for this not being the
default.
Index: repo/Makefile.am
===================================================================
--- repo.orig/Makefile.am 2011-06-17 14:04:06.945088087 +0200
+++ repo/Makefile.am 2011-06-17 14:05:20.173451205 +0200
@@ -173,13 +173,8 @@
evmap.c log.c evutil.c evutil_rand.c strlcpy.c $(SYS_SRC)
EXTRA_SRC = event_tagging.c http.c evdns.c evrpc.c
-if BUILD_WITH_NO_UNDEFINED
NO_UNDEFINED = -no-undefined
MAYBE_CORE = libevent_core.la
-else
-NO_UNDEFINED =
-MAYBE_CORE =
-endif
GENERIC_LDFLAGS = -version-info $(VERSION_INFO) $(RELEASE) $(NO_UNDEFINED)
Index: repo/Makefile.in
===================================================================
--- repo.orig/Makefile.in 2011-06-17 14:11:03.759154950 +0200
+++ repo/Makefile.in 2011-06-17 14:11:48.079374725 +0200
@@ -149,7 +149,7 @@
$(libevent_core_la_LDFLAGS) $(LDFLAGS) -o $@
@INSTALL_LIBEVENT_FALSE@am_libevent_core_la_rpath =
@INSTALL_LIBEVENT_TRUE@am_libevent_core_la_rpath = -rpath $(libdir)
-@BUILD_WITH_NO_UNDEFINED_TRUE@am__DEPENDENCIES_2 = libevent_core.la
+am__DEPENDENCIES_2 = libevent_core.la
libevent_extra_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \
$(am__DEPENDENCIES_1)
am_libevent_extra_la_OBJECTS = $(am__objects_10)
@@ -505,10 +505,8 @@
evmap.c log.c evutil.c evutil_rand.c strlcpy.c $(SYS_SRC)
EXTRA_SRC = event_tagging.c http.c evdns.c evrpc.c
-@BUILD_WITH_NO_UNDEFINED_FALSE@NO_UNDEFINED =
-@BUILD_WITH_NO_UNDEFINED_TRUE@NO_UNDEFINED = -no-undefined
-@BUILD_WITH_NO_UNDEFINED_FALSE@MAYBE_CORE =
-@BUILD_WITH_NO_UNDEFINED_TRUE@MAYBE_CORE = libevent_core.la
+NO_UNDEFINED = -no-undefined
+MAYBE_CORE = libevent_core.la
GENERIC_LDFLAGS = -version-info $(VERSION_INFO) $(RELEASE) $(NO_UNDEFINED)
libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
|