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.") 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")