pacparser: fix compilation with clang (#29589)

This commit is contained in:
Valentin Volkl
2022-04-19 14:10:05 +02:00
committed by GitHub
parent 48122affbd
commit bad6ebc910

View File

@@ -29,9 +29,10 @@ class Pacparser(MakefilePackage):
description='Build and install python bindings') description='Build and install python bindings')
def build(self, spec, prefix): def build(self, spec, prefix):
make('-C', 'src') make('CC="%s"' % self.compiler.cc, 'CXX="%s"' % self.compiler.cxx, '-C', 'src')
if '+python' in spec: if '+python' in spec:
make('-C', 'src', 'pymod') make('CC="%s"' % self.compiler.cc, 'CXX="%s"' % self.compiler.cxx,
'-C', 'src', 'pymod')
def install(self, spec, prefix): def install(self, spec, prefix):
make('-C', 'src', 'install', 'PREFIX=' + self.prefix) make('-C', 'src', 'install', 'PREFIX=' + self.prefix)