diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-19 23:29:27 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-04-19 21:29:27 -0700 |
commit | 3c0c0f3457fff8bb26cf34e101789b45c4d8bec8 (patch) | |
tree | dd5af2d1c9d3515e991698433e7d0925125c7fab | |
parent | f51af42bc61295d41fe74b2d5beecedafa1d2379 (diff) | |
download | spack-3c0c0f3457fff8bb26cf34e101789b45c4d8bec8.tar.gz spack-3c0c0f3457fff8bb26cf34e101789b45c4d8bec8.tar.bz2 spack-3c0c0f3457fff8bb26cf34e101789b45c4d8bec8.tar.xz spack-3c0c0f3457fff8bb26cf34e101789b45c4d8bec8.zip |
binutils should link to Spack zlib installation (#3914)
-rw-r--r-- | var/spack/repos/builtin/packages/binutils/package.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py index be4675d1b0..41a8312519 100644 --- a/var/spack/repos/builtin/packages/binutils/package.py +++ b/var/spack/repos/builtin/packages/binutils/package.py @@ -39,11 +39,6 @@ class Binutils(AutotoolsPackage): version('2.23.2', '4f8fa651e35ef262edc01d60fb45702e') version('2.20.1', '2b9dc8f2b7dbd5ec5992c6e29de0b764') - depends_on('m4', type='build') - depends_on('flex', type='build') - depends_on('bison', type='build') - depends_on('gettext') - # Add a patch that creates binutils libiberty_pic.a which is preferred by # OpenSpeedShop and cbtf-krell variant('krellpatch', default=False, @@ -51,17 +46,24 @@ class Binutils(AutotoolsPackage): variant('plugins', default=False, description="enable plugins, needed for gold linker") variant('gold', default=True, description="build the gold linker") + variant('libiberty', default=False, description='Also install libiberty.') patch('binutilskrell-2.24.patch', when='@2.24+krellpatch') patch('cr16.patch') patch('update_symbol-2.26.patch', when='@2.26') - variant('libiberty', default=False, description='Also install libiberty.') + depends_on('zlib') + + depends_on('m4', type='build') + depends_on('flex', type='build') + depends_on('bison', type='build') + depends_on('gettext') def configure_args(self): spec = self.spec configure_args = [ + '--with-system-zlib', '--disable-dependency-tracking', '--disable-werror', '--enable-interwork', @@ -69,7 +71,8 @@ class Binutils(AutotoolsPackage): '--enable-shared', '--enable-64-bit-bfd', '--enable-targets=all', - '--with-sysroot=/'] + '--with-sysroot=/', + ] if '+gold' in spec: configure_args.append('--enable-gold') |