Skip to content

Commit

Permalink
Add -lrt dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
zeising committed Jan 5, 2019
1 parent 44e94f7 commit eea70d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ libepollshim_so_version = '0.0.0'
# Dependencies
thread_dep = dependency('threads')
pkgconfig = import('pkgconfig')
rt_dep = cc.find_library('rt')

# Include directories
includes_include = include_directories('include')
Expand All @@ -45,7 +46,9 @@ src_libepollshim = [ 'src/epoll.c',

src_libepollshim += header_libepollshim

deps_libepollshim = [ thread_dep ]
deps_libepollshim = [ thread_dep,
rt_dep
]

lib_libepollshim = shared_library('epoll-shim',
src_libepollshim,
Expand Down

1 comment on commit eea70d6

@jbeich
Copy link
Contributor

@jbeich jbeich commented on eea70d6 Jan 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add libraries_private: [ thread_dep, rt_dep ] to pkgconfig.generate()? pkg-config uses Libs.private for static linking.

Please sign in to comment.