summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCarson Woods <carsonwoods@users.noreply.github.com>2020-03-29 23:05:24 -0500
committerGitHub <noreply@github.com>2020-03-29 23:05:24 -0500
commit05b7ec48c5d38b70e4bcd010979869302032cb81 (patch)
tree33bab7e98c810ac562f4324d55b158bd1cf278f6 /var
parent3cbc26cfa6a3d23148e2ce62d6c80accf7fa3ca6 (diff)
downloadspack-05b7ec48c5d38b70e4bcd010979869302032cb81.tar.gz
spack-05b7ec48c5d38b70e4bcd010979869302032cb81.tar.bz2
spack-05b7ec48c5d38b70e4bcd010979869302032cb81.tar.xz
spack-05b7ec48c5d38b70e4bcd010979869302032cb81.zip
Add additional config options to gdb (#15754)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gdb/package.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gdb/package.py b/var/spack/repos/builtin/packages/gdb/package.py
index 355f59cbdf..e6aef7d671 100644
--- a/var/spack/repos/builtin/packages/gdb/package.py
+++ b/var/spack/repos/builtin/packages/gdb/package.py
@@ -34,6 +34,10 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
variant('python', default=True, description='Compile with Python support')
variant('xz', default=True, description='Compile with lzma support')
variant('source-highlight', default=False, description='Compile with source-highlight support')
+ variant('lto', default=False, description='Enable lto')
+ variant('quad', default=False, description='Enable quad')
+ variant('gold', default=False, description='Enable gold linker')
+ variant('ld', default=False, description='Enable ld')
# Required dependency
depends_on('texinfo', type='build')
@@ -51,4 +55,17 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
args.append('--with-python')
args.append('LDFLAGS={0}'.format(
self.spec['python'].libs.ld_flags))
+
+ if '+lto' in self.spec:
+ args.append('--enable-lto')
+
+ if '+quad' in self.spec:
+ args.append('--with-quad')
+
+ if '+gold' in self.spec:
+ args.append('--enable-gold')
+
+ if '+ld' in self.spec:
+ args.append('--enable-ld')
+
return args