Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: link to libkvm on freebsd
Browse files Browse the repository at this point in the history
Fixes 'undefined reference' linker errors to kvm_open(), kvm_close(), etc.
  • Loading branch information
bnoordhuis committed Sep 27, 2011
1 parent c89a75f commit 9974825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config-unix.mk
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions uv.gyp
Expand Up @@ -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' ],
Expand Down

0 comments on commit 9974825

Please sign in to comment.