Permalink
Browse files

unix: link to libkvm on freebsd

Fixes 'undefined reference' linker errors to kvm_open(), kvm_close(), etc.
  • Loading branch information...
1 parent c89a75f commit 99748250f2ae7c64c32c6a266054a2e6ddd6d8be @bnoordhuis bnoordhuis committed Sep 27, 2011
Showing with 6 additions and 1 deletion.
  1. +1 −1 config-unix.mk
  2. +5 −0 uv.gyp
View
2 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
View
5 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' ],

0 comments on commit 9974825

Please sign in to comment.