changeset 5556:7dd8b61483a5

fontconfig: target_platform == build_platform/linux-64 build fix.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Fri, 11 Sep 2009 19:24:46 +0200
parents b1a9c39ff09d
children a1991215afb8
files gub/specs/fontconfig.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/fontconfig.py	Fri Sep 11 15:40:44 2009 +0200
+++ b/gub/specs/fontconfig.py	Fri Sep 11 19:24:46 2009 +0200
@@ -31,6 +31,11 @@
     def patch (self):
         self.dump ('\nAC_SUBST(LT_AGE)', '%(srcdir)s/configure.in', mode='a', permissions=octal.o755)
         target.AutoBuild.patch (self)
+    def autoupdate (self):
+        target.AutoBuild.autoupdate (self)
+        # FIXME: PROMOTEME to target.py? -- yes, but in/after autoupdate stage
+        self.file_sub ([('cross_compiling=(maybe|no)', 'cross_compiling=yes')],
+                       '%(srcdir)s/configure')
     @context.subst_method
     def freetype_cflags (self):
         # this is shady: we're using the flags from the tools version