Package: urg
Version: 0.8.12-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch


libc_urg uses the symbol floor from libm but does not explicitly link
against it.
This causes undefined references when built with ld --no-add-needed
--as-needed which removes unecessary symbols from
other libraries.

See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/urg/+bug/803212

Attached patch fixes this issue by patching the Makefile.in
If the packaging changes to regenerate the autotools files the patch
should be applied in the same way to the Makefile.am files.
Description: fix build with ld --no-add-needed --as-needed
 libc_urg uses the symbol floor from libm but does not explicitly
 link against it.
 This causes undefined references when built with
 ld --no-add-needed --as-needed which removes unecessary symbols from
 other libraries.
Author: Julian Taylor <jtaylor.deb...@googlemail.com>
Bug: https://bugs.launchpad.net/ubuntu/+source/urg/+bug/803212
Index: urg-0.8.12/src/c/urg/Makefile.in
===================================================================
--- urg-0.8.12.orig/src/c/urg/Makefile.in	2011-07-09 14:22:54.510826168 +0200
+++ urg-0.8.12/src/c/urg/Makefile.in	2011-07-09 14:22:52.150826167 +0200
@@ -53,7 +53,7 @@
 	"$(DESTDIR)$(libc_urg_includedir)"
 libLTLIBRARIES_INSTALL = $(INSTALL)
 LTLIBRARIES = $(lib_LTLIBRARIES)
-libc_urg_la_LIBADD =
+libc_urg_la_LIBADD = -lm
 am_libc_urg_la_OBJECTS = urg_ctrl.lo scip_handler.lo urg_errno.lo
 libc_urg_la_OBJECTS = $(am_libc_urg_la_OBJECTS)
 DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to