Revert "Use cflags instead of the args variable (#5756)" (#5765)

This reverts commit 6c3184820a.
This commit is contained in:
Christoph Junghans 2017-10-14 05:55:02 -06:00 committed by Massimiliano Culpo
parent 6f9036c858
commit a685372636

View file

@ -48,13 +48,11 @@ def configure_args(self):
spec = self.spec spec = self.spec
args = ['--enable-c++'] args = ['--enable-c++']
# CFLAGS handling
cflags = copy.deepcopy(optflags[self.spec.compiler.name])
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'): if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
cflags.append('-rtlib=compiler-rt') args.append('CFLAGS=-rtlib=compiler-rt')
if spec.satisfies('%intel'): if spec.satisfies('%intel'):
cflags.append('-no-gcc') args.append('CFLAGS=-no-gcc')
args.append('CFLAGS = {0}'.format(' '.join(cflags)))
if '+sigsegv' in spec: if '+sigsegv' in spec:
args.append('--with-libsigsegv-prefix={0}'.format( args.append('--with-libsigsegv-prefix={0}'.format(