changeset 5611:64662bdcca0c

target: cross_compilation hack.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Wed, 23 Sep 2009 19:58:40 +0200
parents 18d089fc6934
children ba8cabbbb308
files gub/target.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/target.py	Wed Sep 23 19:35:24 2009 +0200
+++ b/gub/target.py	Wed Sep 23 19:58:40 2009 +0200
@@ -19,8 +19,9 @@
     def autoupdate (self):
         build.AutoBuild.autoupdate (self)
         if self.expand ('%(configure_binary)s').startswith ('/'):
+            # FIXME: add deferred check for configure_ existance
             self.file_sub ([('cross_compiling=(maybe|no|yes)',
-                             'cross_compiling=yes')], file)
+                             'cross_compiling=yes')], '%(configure_binary)s')
     @context.subst_method
     def config_cache_flag (self):
         if True or self.config_cache_flag_broken: