Skip to content
Snippets Groups Projects
Commit 44ba16a3 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Add libiberty option to binutils

parent fe76e0ae
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,20 @@ class Binutils(Package): ...@@ -10,8 +10,20 @@ class Binutils(Package):
version('2.23.2', '4f8fa651e35ef262edc01d60fb45702e') version('2.23.2', '4f8fa651e35ef262edc01d60fb45702e')
version('2.20.1', '2b9dc8f2b7dbd5ec5992c6e29de0b764') version('2.20.1', '2b9dc8f2b7dbd5ec5992c6e29de0b764')
variant('libiberty', default=False, description='Also install libiberty.')
def install(self, spec, prefix): def install(self, spec, prefix):
configure("--prefix=%s" % prefix) configure_args = [
'--prefix=%s' % prefix,
'--disable-dependency-tracking',
'--enable-interwork',
'--enable-multilib',
'--enable-64-bit-bfd',
'--enable-targets=all']
if '+libiberty' in spec:
configure_args.append('--enable-install-libiberty')
configure(*configure_args)
make() make()
make("install") make("install")
...@@ -47,7 +47,7 @@ class Gcc(Package): ...@@ -47,7 +47,7 @@ class Gcc(Package):
depends_on("gmp") depends_on("gmp")
depends_on("mpc") # when @4.5: depends_on("mpc") # when @4.5:
depends_on("libelf") depends_on("libelf")
depends_on("binutils") depends_on("binutils~libiberty")
# Save these until we can do optional deps. # Save these until we can do optional deps.
#depends_on("isl") #depends_on("isl")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment