Skip to content
Snippets Groups Projects
Unverified Commit 05b7ec48 authored by Carson Woods's avatar Carson Woods Committed by GitHub
Browse files

Add additional config options to gdb (#15754)

parent 3cbc26cf
Branches
Tags
No related merge requests found
...@@ -34,6 +34,10 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage): ...@@ -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): ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment