aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2025-01-29 13:27:44 +0000
committerSimon Ser <contact@emersion.fr>2025-02-05 06:52:53 +0000
commit02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3 (patch)
tree94809ceae75e0d74b8e623903dd0705b606ca630
parenttests: Add dispatch timeout tests (diff)
downloadwayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.tar
wayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.tar.gz
wayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.tar.bz2
wayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.tar.lz
wayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.tar.xz
wayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.tar.zst
wayland-02ad102e2d2d0dbb9529d00ab52ca4ff276d2ae3.zip
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
-rw-r--r--src/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
index 5d04334..984e34a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -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())