libdrm: fix build error with clang (#27848)
This commit is contained in:
parent
4ccfe5108c
commit
50cb742377
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user