Match up with the new binutils package file. It does what OSS needs w.r.t. libiberty.
This commit is contained in:
parent
24c609b6df
commit
d6a2ab08ac
1 changed files with 13 additions and 10 deletions
|
@ -13,19 +13,22 @@ class Binutils(Package):
|
||||||
variant('krellpatch', default=False, description="build with openspeedshop based patch.")
|
variant('krellpatch', default=False, description="build with openspeedshop based patch.")
|
||||||
patch('binutilskrell-2.24.patch', when='@2.24+krellpatch')
|
patch('binutilskrell-2.24.patch', when='@2.24+krellpatch')
|
||||||
|
|
||||||
|
variant('libiberty', default=False, description='Also install libiberty.')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
|
|
||||||
# Add additional configuration options for use in the OpenSpeedShop project
|
configure_args = [
|
||||||
if '+krellpatch' in spec:
|
'--prefix=%s' % prefix,
|
||||||
configure('--prefix', self.prefix,
|
'--disable-dependency-tracking',
|
||||||
'--libdir', self.prefix.lib,
|
'--enable-interwork',
|
||||||
'--enable-shared',
|
'--enable-multilib',
|
||||||
'--enable-install-libiberty',
|
'--enable-shared',
|
||||||
'--disable-multilib'
|
'--enable-64-bit-bfd',
|
||||||
)
|
'--enable-targets=all']
|
||||||
else:
|
|
||||||
configure("--prefix=%s" % prefix)
|
|
||||||
|
|
||||||
|
if '+libiberty' in spec:
|
||||||
|
configure_args.append('--enable-install-libiberty')
|
||||||
|
|
||||||
|
configure(*configure_args)
|
||||||
make()
|
make()
|
||||||
make("install")
|
make("install")
|
||||||
|
|
Loading…
Reference in a new issue