changeset 5181:2b174d2fd938

libiconv: link using libiconv.la in ../lib rather than in $(DESTDIR)/usr/lib. This avoids lookup in /usr, because installed target .la files have libdir=/usr/lib. This seems unavoidable; it is how we want it and bin/gpkg does the /usr/lib -> %(system_prefix)s/ rewiring.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Wed, 18 Feb 2009 14:44:17 +0100
parents 3322bb727ce5
children 239356465a88
files gub/specs/libiconv.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/libiconv.py	Wed Feb 18 14:41:57 2009 +0100
+++ b/gub/specs/libiconv.py	Wed Feb 18 14:44:17 2009 +0100
@@ -6,6 +6,11 @@
         return True
     def _get_build_dependencies (self):
         return ['gettext-devel', 'libtool']
+    def patch (self):
+        target.AutoBuild.patch (self)
+        #self.file_sub ([('	  [*][)]', '	  foobar)')],
+        #               '%(srcdir)s/src/Makefile.in')
+        self.file_sub ([('$(DESTDIR)$(libdir)/libiconv.la', '../lib/libiconv.la')], '%(srcdir)s/src/Makefile.in', use_re=False)
     def install (self):
         target.AutoBuild.install (self)
         self.system ('rm %(install_prefix)s/lib/charset.alias')