mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-04 06:00:30 +01:00
meson: depend on math library for BSDs
ld: error: undefined symbol: __isnormal >>> referenced by util-strings.h:243 (src/util-strings.h:243) >>> test/unit-tests-utils.p/.._src_util-strings.c.o:(xatod)
This commit is contained in:
parent
3b8ce3dca1
commit
53482faa57
3 changed files with 3 additions and 1 deletions
|
|
@ -77,6 +77,7 @@ if cc.has_function('memfd_create', prefix: '#define _GNU_SOURCE\n#include <sys/m
|
|||
config_h.set10('HAVE_MEMFD_CREATE', true)
|
||||
endif
|
||||
|
||||
dep_math = cc.find_library('m', required: false)
|
||||
dep_libxkbcommon = dependency('xkbcommon', required: false)
|
||||
config_h.set10('HAVE_LIBXKBCOMMON', dep_libxkbcommon.found())
|
||||
dep_libevdev = dependency('libevdev', required: false)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ src_libutil = files(
|
|||
lib_util = static_library('util',
|
||||
src_libutil,
|
||||
include_directories: [inc_builddir],
|
||||
dependencies: [dep_math],
|
||||
)
|
||||
|
||||
dep_libutil = declare_dependency(link_with: lib_util)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ test('unit-tests-utils',
|
|||
src_libutil,
|
||||
include_directories: [inc_src, inc_builddir],
|
||||
c_args: ['-D_enable_tests_'],
|
||||
dependencies: [dep_unittest]))
|
||||
dependencies: [dep_unittest, dep_math]))
|
||||
|
||||
test('unit-tests-ei',
|
||||
executable('unit-tests-ei',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue