build: Add -lm to pkg-config dependencies

Now that wl_fixed_from_double() calls round() from a function declared
in a header, our users need to explicitly pick that dependency up in
order to avoid build errors.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Closes: wayland/weston#991
This commit is contained in:
Daniel Stone 2025-01-29 13:27:44 +00:00 committed by Simon Ser
parent 74f322c35a
commit 02ad102e2d

View file

@ -212,6 +212,7 @@ if get_option('libraries')
description: 'Server side implementation of the Wayland protocol',
version: meson.project_version(),
filebase: 'wayland-server',
libraries: mathlib_dep,
variables: [
'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name())
@ -251,6 +252,7 @@ if get_option('libraries')
description: 'Wayland client side library',
version: meson.project_version(),
filebase: 'wayland-client',
libraries: mathlib_dep,
variables: [
'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name())