Thanks, that worked.  I had to duplicate it for freebsd/cross/gcc.py
as well; patch attached.

Cheers,
- Graham

On Wed, Sep 16, 2009 at 7:56 AM, Jan Nieuwenhuizen <[email protected]> wrote:
>
> Op woensdag 16-09-2009 om 05:47 uur [tijdzone +0100], schreef Graham
> Percival:
> > On Wed, Sep 16, 2009 at 03:42:05AM +0200, Jan Nieuwenhuizen wrote:
>
> > It's a normal (AFAIK) 32-bit ubuntu installation on a 64-bit chip.
> > I'll switch to 64-bit, though... I actually intended to use it
> > from the beginning, but since I've never had such a machine
> > before, I automatically downloaded the i386 version.  :)
>
> np, iwbn if it worked.  Just pushed a possible fix.
>
> Thanks, Jan.
>
>
From c913e6ac8f247dd67d3c584ebadaa49be61d3061 Mon Sep 17 00:00:00 2001
From: Graham Percival <gperc...@gperciva-desktop.(none)>
Date: Wed, 16 Sep 2009 11:00:24 +0100
Subject: [PATCH] freebsd::cross/gcc: remove LDFLAGS.  Fixes build on x86.

---
 gub/specs/freebsd/cross/gcc.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gub/specs/freebsd/cross/gcc.py b/gub/specs/freebsd/cross/gcc.py
index d9fc572..e861cdb 100644
--- a/gub/specs/freebsd/cross/gcc.py
+++ b/gub/specs/freebsd/cross/gcc.py
@@ -1,4 +1,5 @@
 from gub.specs.cross import gcc as cross_gcc
+from gub import misc
 
 class Gcc__freebsd (cross_gcc.Gcc):
     #source = 'ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.2/gcc-4.1.2.tar.bz2'
@@ -6,3 +7,10 @@ class Gcc__freebsd (cross_gcc.Gcc):
     source = 'ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.3.2/gcc-4.3.2.tar.bz2'
     def _get_build_dependencies (self):
         return cross_gcc.Gcc._get_build_dependencies (self) + ['tools::mpfr']
+    def configure_command (self):
+        return (cross_gcc.Gcc.configure_command (self)
+                # PROMOTEME: if this work, try removing from cross.py
+                .replace ('LDFLAGS=-L%(system_prefix)s/lib', '')
+                + misc.join_lines ('''
+--program-prefix=%(toolchain_prefix)s
+'''))
-- 
1.6.0.4

_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to