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.
This commit is contained in:
parent
24865fccdc
commit
cc6e765d28
@ -116,6 +116,11 @@ def _std_args(pkg):
|
|||||||
|
|
||||||
args = [
|
args = [
|
||||||
'--prefix={0}'.format(pkg.prefix),
|
'--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),
|
'--buildtype={0}'.format(build_type),
|
||||||
'--strip',
|
'--strip',
|
||||||
]
|
]
|
||||||
@ -141,6 +146,7 @@ def meson_args(self):
|
|||||||
meson, except:
|
meson, except:
|
||||||
|
|
||||||
* ``--prefix``
|
* ``--prefix``
|
||||||
|
* ``--libdir``
|
||||||
* ``--buildtype``
|
* ``--buildtype``
|
||||||
* ``--strip``
|
* ``--strip``
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user