Package: powermanga
Version: 0.90-dfsg-2
Severity: wishlist
Tags: patch
Forwarded: 
https://sourceforge.net/tracker/?func=detail&aid=3357639&group_id=20416&atid=120416
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch


libm is used directly by powermanga so one must link with it
It currently relies on indirect linkage by its dependencies.
If these are built with ld --as-needed --no-copy-dt-needed
the indirect linkage is missing

See the log in the ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/powermanga/+bug/771039

Attached patch fixes this issue by patching Makefile.in as it is not regenerated
by the package.
A patch patching Makefile.am has been forwarded upstream.

Description: link against needed libm
 libm is used directly by powermanga so one must link with it
 previously it relied on indirect linkage by its dependencies.
 If these are built with ld --as-needed --no-copy-dt-needed
 the indirect linkage is missing
Author: Julian Taylor <[email protected]>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/powermanga/+bug/771039
Index: powermanga-0.90-dfsg/src/Makefile.in
===================================================================
--- powermanga-0.90-dfsg.orig/src/Makefile.in	2011-07-07 11:17:04.733971865 +0200
+++ powermanga-0.90-dfsg/src/Makefile.in	2011-07-07 11:17:02.483971863 +0200
@@ -226,7 +226,7 @@
 powermanga_SOURCES = $(SOURCES_MAIN) $(SOURCES_EXTRA)
 #powermanga_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DSCOREFILE=\"$(scoredir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@
 powermanga_CFLAGS = -DPREFIX=\"$(prefix)\" -DSCOREFILE=\"$(scoredir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@
-powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@
+powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@ -lm
 @ASSEMBLY_FALSE@SOURCES_EXTRA = gfxroutines.c gfxroutines.h
 @ASSEMBLY_TRUE@SOURCES_EXTRA = assembler.S assembler_opt.S assembler.h
 SOURCES_MAIN = \

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to