Add additional config options to gdb (#15754)
This commit is contained in:
parent
3cbc26cfa6
commit
05b7ec48c5
@ -34,6 +34,10 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
|
|||||||
variant('python', default=True, description='Compile with Python support')
|
variant('python', default=True, description='Compile with Python support')
|
||||||
variant('xz', default=True, description='Compile with lzma support')
|
variant('xz', default=True, description='Compile with lzma support')
|
||||||
variant('source-highlight', default=False, description='Compile with source-highlight 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
|
# Required dependency
|
||||||
depends_on('texinfo', type='build')
|
depends_on('texinfo', type='build')
|
||||||
@ -51,4 +55,17 @@ def configure_args(self):
|
|||||||
args.append('--with-python')
|
args.append('--with-python')
|
||||||
args.append('LDFLAGS={0}'.format(
|
args.append('LDFLAGS={0}'.format(
|
||||||
self.spec['python'].libs.ld_flags))
|
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
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user