lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUB on kainhofer: still cross/gcc


From: Jan Nieuwenhuizen
Subject: Re: GUB on kainhofer: still cross/gcc
Date: Sun, 31 May 2009 21:20:24 +0200

Op zaterdag 30-05-2009 om 22:46 uur [tijdzone -0700], schreef Graham
Percival:

> Who has successfully built GUB?

Me!
:-)

>     def compile_command (self):
>         os.putenv('CFLAGS', '-fno-stack-protector ')
>         return (cross.AutoBuild.compile_command (self))
> to the class Gcc (cross.AutoBuild), but that also failed.

FWIW, I'd very much avoid juggling with the environment from python,
and try to keep changes as local as you can.

> Any more tips?  I'd really like to get this working so I can make
> releases.

I'd try something like

diff --git a/gub/specs/darwin/odcctools.py b/gub/specs/darwin/odcctools.py
index ee953c0..1d24944 100644
--- a/gub/specs/darwin/odcctools.py
+++ b/gub/specs/darwin/odcctools.py
@@ -62,3 +62,8 @@ cd %(install_prefix)s%(cross_dir)s/bin && ln 
%(toolchain_prefix)sstrip ../%(targ
     def install (self):
         cross.AutoBuild.install (self)
         self.install_librestrict_stat_helpers ()
+
+class Odcctools__darwin__ppc (Odcctools):
+    def configure_command (self):
+        return (Odcctools.configure_command (self)
+                + ' CFLAGS=-fno-stack-protector')

but if this works, you'd have to add a test (probably to 
to odcctool's configure) if gcc groks -fno-stack-protector.

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
AvatarĀ®: http://AvatarAcademy.nl    | http://lilypond.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]