[libdrm] AutotoolsPackage; %gcc@10.0.0 requires CFLAGS=-fcommon (#18393)
* [libdrm] AutotoolsPackage; %gcc@10.0.0 requires CFLAGS=-fcommon * [libdrm] placate flake8
This commit is contained in:
parent
586fbe05b5
commit
49df20f1ef
@ -7,7 +7,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class Libdrm(Package):
|
class Libdrm(AutotoolsPackage):
|
||||||
"""A userspace library for accessing the DRM, direct rendering manager,
|
"""A userspace library for accessing the DRM, direct rendering manager,
|
||||||
on Linux, BSD and other systems supporting the ioctl interface."""
|
on Linux, BSD and other systems supporting the ioctl interface."""
|
||||||
|
|
||||||
@ -25,11 +25,10 @@ class Libdrm(Package):
|
|||||||
depends_on('libpciaccess@0.10:', when=(sys.platform != 'darwin'))
|
depends_on('libpciaccess@0.10:', when=(sys.platform != 'darwin'))
|
||||||
depends_on('libpthread-stubs')
|
depends_on('libpthread-stubs')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
configure('--prefix={0}'.format(prefix),
|
args = []
|
||||||
'--enable-static',
|
args.append('--enable-static')
|
||||||
'LIBS=-lrt') # This fixes a bug with `make check`
|
args.append('LIBS=-lrt') # This fixes a bug with `make check`
|
||||||
|
if self.spec.satisfies('%gcc@10.0.0:'):
|
||||||
make()
|
args.append('CFLAGS=-fcommon')
|
||||||
make('check')
|
return args
|
||||||
make('install')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user