summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2018-10-15 20:14:59 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-15 11:14:59 -0700
commitcc6e765d2879071979e1269ac91606c3208efec9 (patch)
treece0b112441ec4db9a9758078b453b8d004258fd7 /lib
parent24865fccdc70749d4174b819d14c9d45115d7e7b (diff)
downloadspack-cc6e765d2879071979e1269ac91606c3208efec9.tar.gz
spack-cc6e765d2879071979e1269ac91606c3208efec9.tar.bz2
spack-cc6e765d2879071979e1269ac91606c3208efec9.tar.xz
spack-cc6e765d2879071979e1269ac91606c3208efec9.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/meson.py6
1 files changed, 6 insertions, 0 deletions
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``