From cc6e765d2879071979e1269ac91606c3208efec9 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Mon, 15 Oct 2018 20:14:59 +0200 Subject: meson: explicitly add --libdir (#9504) If we do not specify libdir explicitly, Meson chooses something like lib/x86_64-linux-gnu, which causes problems when trying to find libraries and pkg-config files. --- lib/spack/spack/build_systems/meson.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/meson.py b/lib/spack/spack/build_systems/meson.py index 442c836391..46161b001b 100644 --- a/lib/spack/spack/build_systems/meson.py +++ b/lib/spack/spack/build_systems/meson.py @@ -116,6 +116,11 @@ class MesonPackage(PackageBase): args = [ '--prefix={0}'.format(pkg.prefix), + # If we do not specify libdir explicitly, Meson chooses something + # like lib/x86_64-linux-gnu, which causes problems when trying to + # find libraries and pkg-config files. + # See https://github.com/mesonbuild/meson/issues/2197 + '--libdir={0}'.format(pkg.prefix.lib), '--buildtype={0}'.format(build_type), '--strip', ] @@ -141,6 +146,7 @@ class MesonPackage(PackageBase): meson, except: * ``--prefix`` + * ``--libdir`` * ``--buildtype`` * ``--strip`` -- cgit v1.2.3-60-g2f50