Use cflags instead of the args variable (#5756)
That way the user can still append things to CFLAGS.
This commit is contained in:
parent
3c7dd367f8
commit
6c3184820a
1 changed files with 5 additions and 3 deletions
|
@ -48,11 +48,13 @@ def configure_args(self):
|
|||
spec = self.spec
|
||||
args = ['--enable-c++']
|
||||
|
||||
# CFLAGS handling
|
||||
cflags = copy.deepcopy(optflags[self.spec.compiler.name])
|
||||
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
|
||||
args.append('CFLAGS=-rtlib=compiler-rt')
|
||||
|
||||
cflags.append('-rtlib=compiler-rt')
|
||||
if spec.satisfies('%intel'):
|
||||
args.append('CFLAGS=-no-gcc')
|
||||
cflags.append('-no-gcc')
|
||||
args.append('CFLAGS = {0}'.format(' '.join(cflags)))
|
||||
|
||||
if '+sigsegv' in spec:
|
||||
args.append('--with-libsigsegv-prefix={0}'.format(
|
||||
|
|
Loading…
Reference in a new issue