* flaglar variables içine taşındı, get bunları env ile alıyor
This commit is contained in:
@@ -52,16 +52,16 @@ def srcDIR():
|
||||
return env.src_name + '-' + env.src_version
|
||||
|
||||
def HOST():
|
||||
return flags.host
|
||||
return env.host
|
||||
|
||||
def CFLAGS():
|
||||
return flags.cflags
|
||||
return env.cflags
|
||||
|
||||
def CXXFLAGS():
|
||||
return flags.cxxflags
|
||||
return env.cxxflags
|
||||
|
||||
def LDFLAGS():
|
||||
return flags.ldflags
|
||||
return env.ldflags
|
||||
|
||||
def getBinutilsInfo(needed):
|
||||
return "%s-%s" % (HOST(), needed)
|
||||
|
||||
@@ -29,7 +29,11 @@ class Env(object):
|
||||
'install_dir': 'INSTALL_DIR',
|
||||
'src_name': 'SRC_NAME',
|
||||
'src_version': 'SRC_VERSION',
|
||||
'src_release': 'SRC_RELEASE'
|
||||
'src_release': 'SRC_RELEASE',
|
||||
'host': 'HOST',
|
||||
'cflags': 'CFLAGS',
|
||||
'cxxflags': 'CXXFLAGS',
|
||||
'ldflags': 'LDFLAGS'
|
||||
}
|
||||
|
||||
def __getattr__(self, attr):
|
||||
@@ -60,7 +64,7 @@ class Flags:
|
||||
environ['HOST'] = host = values.build.host
|
||||
environ['CFLAGS'] = cflags = values.build.cflags
|
||||
environ['CXXFLAGS'] = cxxflags = values.build.cxxflags
|
||||
ldflags = values.build.ldflags
|
||||
environ['LDFLAGS'] = ldflags = values.build.ldflags
|
||||
|
||||
class Variables(pisi.config.Config):
|
||||
const = pisi.constants.const
|
||||
|
||||
Reference in New Issue
Block a user