summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2020-08-29 15:39:02 -0500
committerGitHub <noreply@github.com>2020-08-29 15:39:02 -0500
commit49df20f1ef970df3e64db800bf03dd30b2114c33 (patch)
treecce7f4641280738eb609078a71f2f95a185d05ba /var
parent586fbe05b56b561dec308462573e5b533513175f (diff)
downloadspack-49df20f1ef970df3e64db800bf03dd30b2114c33.tar.gz
spack-49df20f1ef970df3e64db800bf03dd30b2114c33.tar.bz2
spack-49df20f1ef970df3e64db800bf03dd30b2114c33.tar.xz
spack-49df20f1ef970df3e64db800bf03dd30b2114c33.zip
[libdrm] AutotoolsPackage; %gcc@10.0.0 requires CFLAGS=-fcommon (#18393)
* [libdrm] AutotoolsPackage; %gcc@10.0.0 requires CFLAGS=-fcommon * [libdrm] placate flake8
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libdrm/package.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/libdrm/package.py b/var/spack/repos/builtin/packages/libdrm/package.py
index 82f55a9955..adc2964678 100644
--- a/var/spack/repos/builtin/packages/libdrm/package.py
+++ b/var/spack/repos/builtin/packages/libdrm/package.py
@@ -7,7 +7,7 @@ from spack import *
import sys
-class Libdrm(Package):
+class Libdrm(AutotoolsPackage):
"""A userspace library for accessing the DRM, direct rendering manager,
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('libpthread-stubs')
- def install(self, spec, prefix):
- configure('--prefix={0}'.format(prefix),
- '--enable-static',
- 'LIBS=-lrt') # This fixes a bug with `make check`
-
- make()
- make('check')
- make('install')
+ def configure_args(self):
+ args = []
+ args.append('--enable-static')
+ args.append('LIBS=-lrt') # This fixes a bug with `make check`
+ if self.spec.satisfies('%gcc@10.0.0:'):
+ args.append('CFLAGS=-fcommon')
+ return args