Add additional config options to gdb (#15754)

This commit is contained in:
Carson Woods 2020-03-29 23:05:24 -05:00 committed by GitHub
parent 3cbc26cfa6
commit 05b7ec48c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def configure_args(self):
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