libdrm: fix build error with clang (#27848)

This commit is contained in:
Valentin Volkl 2021-12-08 15:05:38 +01:00 committed by GitHub
parent 4ccfe5108c
commit 50cb742377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,6 @@ def configure_args(self):
# Needed to fix build for spack/spack#1740, but breaks newer # Needed to fix build for spack/spack#1740, but breaks newer
# builds/compilers # builds/compilers
args.append('LIBS=-lrt') args.append('LIBS=-lrt')
if self.spec.satisfies('%gcc@10.0.0:'): if self.spec.satisfies('%gcc@10.0.0:') or self.spec.satisfies('%clang@12.0.0:'):
args.append('CFLAGS=-fcommon') args.append('CFLAGS=-fcommon')
return args return args