Match up with the new binutils package file. It does what OSS needs w.r.t. libiberty.

This commit is contained in:
Jim Galarowicz 2015-11-06 11:47:00 -08:00
parent 24c609b6df
commit d6a2ab08ac

View file

@ -13,19 +13,22 @@ class Binutils(Package):
variant('krellpatch', default=False, description="build with openspeedshop based patch.")
patch('binutilskrell-2.24.patch', when='@2.24+krellpatch')
variant('libiberty', default=False, description='Also install libiberty.')
def install(self, spec, prefix):
# Add additional configuration options for use in the OpenSpeedShop project
if '+krellpatch' in spec:
configure('--prefix', self.prefix,
'--libdir', self.prefix.lib,
configure_args = [
'--prefix=%s' % prefix,
'--disable-dependency-tracking',
'--enable-interwork',
'--enable-multilib',
'--enable-shared',
'--enable-install-libiberty',
'--disable-multilib'
)
else:
configure("--prefix=%s" % prefix)
'--enable-64-bit-bfd',
'--enable-targets=all']
if '+libiberty' in spec:
configure_args.append('--enable-install-libiberty')
configure(*configure_args)
make()
make("install")