diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-01-26 08:59:25 +0100 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-01-26 08:59:25 +0100 |
commit | 6f11a64af5b994b31100e0313c25dfb4f6227255 (patch) | |
tree | 35949b8c513849b4bee4b0c2b73e6f9fd1b58084 /var/spack/repos/builtin/packages/binutils/package.py | |
parent | d95d169ac50a3c253ef9712782626af1e1610ca7 (diff) | |
parent | 1a5270023803303f07db507fa36139fb52111b9d (diff) | |
download | spack-6f11a64af5b994b31100e0313c25dfb4f6227255.tar.gz spack-6f11a64af5b994b31100e0313c25dfb4f6227255.tar.bz2 spack-6f11a64af5b994b31100e0313c25dfb4f6227255.tar.xz spack-6f11a64af5b994b31100e0313c25dfb4f6227255.zip |
Merge branch 'develop' of https://github.com/LLNL/spack into refactoring/resource_directive
Conflicts:
lib/spack/spack/fetch_strategy.py
lib/spack/spack/mirror.py
lib/spack/spack/package.py
Diffstat (limited to 'var/spack/repos/builtin/packages/binutils/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/binutils/package.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py new file mode 100644 index 0000000000..de04221e33 --- /dev/null +++ b/var/spack/repos/builtin/packages/binutils/package.py @@ -0,0 +1,40 @@ +from spack import * + +class Binutils(Package): + """GNU binutils, which contain the linker, assembler, objdump and others""" + homepage = "http://www.gnu.org/software/binutils/" + + version('2.25', 'd9f3303f802a5b6b0bb73a335ab89d66',url="ftp://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.bz2") + version('2.24', 'e0f71a7b2ddab0f8612336ac81d9636b',url="ftp://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2") + version('2.23.2', '4f8fa651e35ef262edc01d60fb45702e',url="ftp://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2") + version('2.20.1', '2b9dc8f2b7dbd5ec5992c6e29de0b764',url="ftp://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2") + + # Add a patch that creates binutils libiberty_pic.a which is preferred by OpenSpeedShop and cbtf-krell + variant('krellpatch', default=False, description="build with openspeedshop based patch.") + variant('gold', default=True, description="build the gold linker") + patch('binutilskrell-2.24.patch', when='@2.24+krellpatch') + + patch('cr16.patch') + + variant('libiberty', default=False, description='Also install libiberty.') + + def install(self, spec, prefix): + configure_args = [ + '--prefix=%s' % prefix, + '--disable-dependency-tracking', + '--enable-interwork', + '--enable-multilib', + '--enable-shared', + '--enable-64-bit-bfd', + '--enable-targets=all', + '--with-sysroot=/'] + + if '+gold' in spec: + configure_args.append('--enable-gold') + + if '+libiberty' in spec: + configure_args.append('--enable-install-libiberty') + + configure(*configure_args) + make() + make("install") |