mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-13 05:34:21 -04:00
darwin: Locate libffi with cc.find_library() rather than dependency()
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
4ee79756e0
commit
0b01986b0b
2 changed files with 10 additions and 1 deletions
|
|
@ -82,7 +82,12 @@ if get_option('libraries')
|
|||
# Otherwise, assume that epoll(7) is supported natively.
|
||||
epoll_dep = []
|
||||
endif
|
||||
ffi_dep = dependency('libffi')
|
||||
|
||||
if host_machine.system() == 'darwin'
|
||||
ffi_dep = cc.find_library('ffi')
|
||||
else
|
||||
ffi_dep = dependency('libffi')
|
||||
endif
|
||||
|
||||
decls = [
|
||||
{ 'header': 'sys/signalfd.h', 'symbol': 'SFD_CLOEXEC' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue