Use cflags instead of the args variable (#5756)

That way the user can still append things to CFLAGS.
This commit is contained in:
Ondřej Čertík 2017-10-13 15:15:06 -06:00 committed by Christoph Junghans
parent 3c7dd367f8
commit 6c3184820a

View file

@ -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(