Package: uim
Version: 0.9-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
the package uim fails to build when using the linker flag --as-needed
This is caused by the library libuim placed before the static
libuim-counted-init library which needs its symbols.
ld will then drop libuim as it appears not needed.
See the build log in ubuntu:
https://bugs.launchpad.net/ubuntu/+source/tkpng/+bug/832926
attached patch fixes this by adding libuim again behind libuim-counted-init
Description: fix build with ld --as-needed
uim-counted-init is a static library which needs symbols from libuim
which it must be placed behind it on the command line so it is not
dropped by ld --as-needed
Author: Julian Taylor <jtaylor.deb...@googlemail.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/uim/+bug/832939
Index: uim-1.7.1/qt4/pref/uim-pref-qt4.pro.in
===================================================================
--- uim-1.7.1.orig/qt4/pref/uim-pref-qt4.pro.in 2011-08-25 23:31:03.080564183 +0200
+++ uim-1.7.1/qt4/pref/uim-pref-qt4.pro.in 2011-08-25 23:31:01.170564166 +0200
@@ -4,7 +4,7 @@
# to include qtgettext.h
INCLUDEPATH += @srcdir@/..
-LIBS += -luim-custom -luim-counted-init @LIBINTL@
+LIBS += -luim-custom -luim-counted-init -luim @LIBINTL@
QMAKE_UIC = $$QMAKE_UIC -tr UIC_