changeset 5452:3afc2c1c2374

set PERL5LIB: fixes running perl, autoconf in /GUB root.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Wed, 29 Jul 2009 11:21:52 +0200
parents 963ce152f0af
children 634039d6e746
files gub/specs/autoconf.py gub/target.py
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/autoconf.py	Wed Jul 29 11:20:09 2009 +0200
+++ b/gub/specs/autoconf.py	Wed Jul 29 11:21:52 2009 +0200
@@ -1,3 +1,6 @@
+import os
+#
+from gub import misc
 from gub import tools
 
 class Autoconf__tools (tools.AutoBuild):
@@ -6,3 +9,6 @@
         return ['m4']
     def force_sequential_build (self):
         return True
+    def makeflags (self):
+        return ('PERL5LIB=%(tools_prefix)s/lib/perl5/5.10.0'
+                + misc.append_path (os.environ.get ('PERL5LIB', '')))
--- a/gub/target.py	Wed Jul 29 11:20:09 2009 +0200
+++ b/gub/target.py	Wed Jul 29 11:21:52 2009 +0200
@@ -148,6 +148,8 @@
             'NM': '%(toolchain_prefix)snm',
             'PKG_CONFIG_PATH': '%(system_prefix)s/lib/pkgconfig',
             'PATH': '%(cross_prefix)s/bin:%(tools_prefix)s/bin:%(tools_cross_prefix)s/bin:' + os.environ['PATH'],
+            'PERL5LIB': '%(tools_prefix)s/lib/perl5/5.10.0'
+            + misc.append_path (os.environ.get ('PERL5LIB', '')),
             'PKG_CONFIG': '''pkg-config \
 --define-variable prefix=%(system_prefix)s \
 --define-variable includedir=%(system_prefix)s/include \