diff --git a/config-unix.mk b/config-unix.mk index c8220c56..045987fe 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -70,7 +70,7 @@ ifeq (FreeBSD,$(uname_S)) EV_CONFIG=config_freebsd.h EIO_CONFIG=config_freebsd.h CPPFLAGS += -Isrc/ares/config_freebsd -LINKFLAGS+= +LINKFLAGS+=-lkvm OBJS += src/unix/freebsd.o OBJS += src/unix/kqueue.o endif diff --git a/uv.gyp b/uv.gyp index 4f2c225a..7a88cfa1 100644 --- a/uv.gyp +++ b/uv.gyp @@ -250,6 +250,11 @@ 'EV_CONFIG_H="config_freebsd.h"', 'EIO_CONFIG_H="config_freebsd.h"', ], + 'direct_dependent_settings': { + 'libraries': [ + '-lkvm', + ], + }, }], [ 'OS=="openbsd"', { 'include_dirs': [ 'src/ares/config_openbsd' ],