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

Add additional configuration options for binutils (#15753)

parent 3310eaab
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment