unix: link to libkvm on freebsd

Fixes 'undefined reference' linker errors to kvm_open(), kvm_close(), etc.
This commit is contained in:
Ben Noordhuis 2011-09-28 00:53:37 +02:00
parent c89a75f5a2
commit 99748250f2
2 changed files with 6 additions and 1 deletions

View File

@ -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

5
uv.gyp
View File

@ -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' ],