summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-01-17 18:25:24 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2016-01-17 18:25:24 -0800
commit1a145f68a788666d978426d32de356e294dd8e3c (patch)
tree6be8ac9ae2d521781cd2c2fa24821c5fefed9de1 /var
parent53644748233b84374c42539baa362cc583f22dce (diff)
parent36a428b8fc2cfaaab7fb52034a3272c67eb47aea (diff)
downloadspack-1a145f68a788666d978426d32de356e294dd8e3c.tar.gz
spack-1a145f68a788666d978426d32de356e294dd8e3c.tar.bz2
spack-1a145f68a788666d978426d32de356e294dd8e3c.tar.xz
spack-1a145f68a788666d978426d32de356e294dd8e3c.zip
Merge pull request #362 from eschnett/eschnett/binutils-osx
Make binutils build on OS X
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/binutils/cr16.patch26
-rw-r--r--var/spack/packages/binutils/package.py2
2 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/packages/binutils/cr16.patch b/var/spack/packages/binutils/cr16.patch
new file mode 100644
index 0000000000..2727c70b23
--- /dev/null
+++ b/var/spack/packages/binutils/cr16.patch
@@ -0,0 +1,26 @@
+--- old/opcodes/cr16-dis.c 2014-10-14 03:32:04.000000000 -0400
++++ new/opcodes/cr16-dis.c 2016-01-14 21:54:26.000000000 -0500
+@@ -78,7 +78,7 @@
+ REG_ARG_TYPE;
+
+ /* Current opcode table entry we're disassembling. */
+-const inst *instruction;
++extern const inst *instruction;
+ /* Current instruction we're disassembling. */
+ ins cr16_currInsn;
+ /* The current instruction is read into 3 consecutive words. */
+@@ -86,12 +86,12 @@
+ /* Contains all words in appropriate order. */
+ ULONGLONG cr16_allWords;
+ /* Holds the current processed argument number. */
+-int processing_argument_number;
++extern int processing_argument_number;
+ /* Nonzero means a IMM4 instruction. */
+ int imm4flag;
+ /* Nonzero means the instruction's original size is
+ incremented (escape sequence is used). */
+-int size_changed;
++extern int size_changed;
+
+
+ /* Print the constant expression length. */
diff --git a/var/spack/packages/binutils/package.py b/var/spack/packages/binutils/package.py
index 1de796bee0..de04221e33 100644
--- a/var/spack/packages/binutils/package.py
+++ b/var/spack/packages/binutils/package.py
@@ -14,6 +14,8 @@ class Binutils(Package):
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):