Package: libevocosm Version: 4.0.2-2.1 Severity: normal Tags: upstream patch User: debian-...@lists.debian.org Usertags: ld-as-needed
libevocosm fails to build when --as-needed linker option is enabled, because libevocosm.so was underlinked and example linking failed. Here's a log of failed build in Ubuntu: https://launchpadlibrarian.net/107964264/buildlog_ubuntu-quantal-i386.libevocosm_4.0.2-2.1_FAILEDTOBUILD.txt.gz See also http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries http://wiki.mandriva.com/en/Underlinking Patch from Ubuntu attached. https://launchpad.net/ubuntu/+source/libevocosm/4.0.2-2.1ubuntu1
Description: Fix FTBFS with --as-needed linker option. Without this patch, libevocosm.so is underlinked, and examples fail to link. Author: Ilya Barygin <randomact...@ubuntu.com> --- a/libevocosm/Makefile.am +++ b/libevocosm/Makefile.am @@ -16,6 +16,7 @@ libevocosm_la_SOURCES = $(h_sources) $(cpp_sources) libevocosm_la_LDFLAGS= -version-info $(GENERIC_LIBRARY_VERSION) -release $(GENERIC_RELEASE) +LIBS = -lbrahe library_includedir=$(includedir)/$(GENERIC_LIBRARY_NAME) library_include_HEADERS = $(h_sources) --- a/libevocosm/Makefile.in +++ b/libevocosm/Makefile.in @@ -241,6 +241,7 @@ lib_LTLIBRARIES = libevocosm.la libevocosm_la_SOURCES = $(h_sources) $(cpp_sources) libevocosm_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION) -release $(GENERIC_RELEASE) +LIBS = -lbrahe library_includedir = $(includedir)/$(GENERIC_LIBRARY_NAME) library_include_HEADERS = $(h_sources) all: all-am