Add additional configuration options for binutils (#15753)
This commit is contained in:
parent
3310eaab99
commit
3cbc26cfa6
1 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,9 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
|
|||
variant('libiberty', default=False, description='Also install libiberty.')
|
||||
variant('nls', default=True, description='Enable Native Language Support')
|
||||
variant('headers', default=False, description='Install extra headers (e.g. ELF)')
|
||||
variant('lto', default=False, description='Enable lto.')
|
||||
variant('ld', default=False, description='Enable ld.')
|
||||
variant('interwork', default=False, description='Enable interwork.')
|
||||
|
||||
patch('cr16.patch', when='@:2.29.1')
|
||||
patch('update_symbol-2.26.patch', when='@2.26')
|
||||
|
@ -68,6 +71,15 @@ def configure_args(self):
|
|||
'--with-sysroot=/',
|
||||
]
|
||||
|
||||
if '+lto' in spec:
|
||||
configure_args.append('--enable-lto')
|
||||
|
||||
if '+ld' in spec:
|
||||
configure_args.append('--enable-ld')
|
||||
|
||||
if '+interwork' in spec:
|
||||
configure_args.append('--enable-interwork')
|
||||
|
||||
if '+gold' in spec:
|
||||
configure_args.append('--enable-gold')
|
||||
|
||||
|
|
Loading…
Reference in a new issue