view gub/specs/cygwin/cross/binutils.py @ 3497:b8a30307b108

more with_template() fixes.
author Han-Wen Nienhuys <hanwen@lilypond.org>
date Sat, 19 May 2007 01:24:04 -0300
parents 2138f041b468
children 0ffa58ea432a
line wrap: on
line source

from gub.specs.cross import binutils

# FIXME: setting binutil's tooldir and/or gcc's gcc_tooldir may fix
# -luser32 (ie -L .../w32api/) problem without having to set LDFLAGS.
class Binutils (binutils.Binutils):
    def __init__ (self, settings):
        binutils.Binutils.__init__ (self, settings)
        from gub import mirrors
        self.with_template (version='2.17', format='bz2', mirror=mirrors.gnu)
    def makeflags (self):
        from gub import misc
        return misc.join_lines ('''
tooldir="%(cross_prefix)s/%(target_architecture)s"
''')
    def compile_command (self):
        return (binutils.Binutils.compile_command (self)
                + self.makeflags ())
    def configure_command (self):
        return (binutils.Binutils.configure_command (self)
                 + ' --disable-werror ')