diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2015-10-06 18:20:48 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2015-10-06 18:49:18 +0200 |
commit | 17de9a37f1d064e18ff61145196b1cb77ae8b64b (patch) | |
tree | 01d7182953beb7f8a0060f77b0604010b23431ff | |
parent | d44571257a6cf4c236d1aad489f8e6202acbb631 (diff) | |
download | spack-17de9a37f1d064e18ff61145196b1cb77ae8b64b.tar.gz spack-17de9a37f1d064e18ff61145196b1cb77ae8b64b.tar.bz2 spack-17de9a37f1d064e18ff61145196b1cb77ae8b64b.tar.xz spack-17de9a37f1d064e18ff61145196b1cb77ae8b64b.zip |
gcc : fixed spec file
-rw-r--r-- | var/spack/packages/gcc/package.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/var/spack/packages/gcc/package.py b/var/spack/packages/gcc/package.py index ddc303bfdb..3d0f2caff5 100644 --- a/var/spack/packages/gcc/package.py +++ b/var/spack/packages/gcc/package.py @@ -122,12 +122,11 @@ class Gcc(Package): return gcc = Executable(join_path(self.prefix.bin, 'gcc')) - lines = gcc('-dumpspecs', return_output=True).split("\n") + lines = gcc('-dumpspecs', return_output=True).strip().split("\n") specs_file = join_path(self.spec_dir, 'specs') with closing(open(specs_file, 'w')) as out: for line in lines: + out.write(line + "\n") if line.startswith("*link:"): - out.write(line + "\n") out.write("-rpath %s/lib:%s/lib64 \\\n"% (self.prefix, self.prefix)) - out.write(line + "\n") set_install_permissions(specs_file) |