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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,10 @@ class Pacparser(MakefilePackage):
description='Build and install python bindings')
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:
make('-C', 'src', 'pymod')
make('CC="%s"' % self.compiler.cc, 'CXX="%s"' % self.compiler.cxx,
'-C', 'src', 'pymod')
def install(self, spec, prefix):
make('-C', 'src', 'install', 'PREFIX=' + self.prefix)