changeset 5756:a78f20fde0cd

Guile: also set LD_LIBRARY_PATH when cross building. Fixes etch debootstrap.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Mon, 12 Oct 2009 20:36:47 +0200
parents 985662a187a0
children 6d8d788cb3c1
files gub/specs/guile.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/guile.py	Mon Oct 12 16:29:26 2009 +0200
+++ b/gub/specs/guile.py	Mon Oct 12 20:36:47 2009 +0200
@@ -41,11 +41,16 @@
 -I%(srcdir)s/libguile"
 '''))
     compile_flags_native = ' LD_PRELOAD= '
+    # FIXME: guile runs gen_scmconfig [when not x-building also guile]
+    # without setting the proper LD_LIBRARY_PATH.
     configure_command = ('GUILE_FOR_BUILD=%(tools_prefix)s/bin/guile '
                          + target.AutoBuild.configure_command
                          + guile_configure_flags)
-    compile_command = ('preinstguile=%(tools_prefix)s/bin/guile '
-                + target.AutoBuild.compile_command)
+    # FIXME: guile runs gen_scmconfig [when not x-building also guile]
+    # without setting the proper LD_LIBRARY_PATH.
+    compile_command = ('LD_LIBRARY_PATH=%(tools_prefix)s/lib:${LD_LIBRARY_PATH-/foe} '
+                       + 'preinstguile=%(tools_prefix)s/bin/guile '
+                       + target.AutoBuild.compile_command)
     subpackage_names = ['doc', 'devel', 'runtime', '']
     @staticmethod
     def version_from_VERSION (self):