diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/mesa/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/mesa/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/mesa/package.py b/var/spack/repos/builtin/packages/mesa/package.py index 0f3165ec4e..02930274d5 100644 --- a/var/spack/repos/builtin/packages/mesa/package.py +++ b/var/spack/repos/builtin/packages/mesa/package.py @@ -175,7 +175,10 @@ class Mesa(MesonPackage): if '+egl' in spec: args.append('-Dglx=dri') else: - args.append('-Dglx=gallium-xlib') + if spec.satisfies('@22:'): + args.append('-Dglx=xlib') + else: + args.append('-Dglx=gallium-xlib') args_platforms.append('x11') else: args.append('-Dglx=disabled') |