unix: link to libkvm on freebsd
Fixes 'undefined reference' linker errors to kvm_open(), kvm_close(), etc.
This commit is contained in:
parent
c89a75f5a2
commit
99748250f2
@ -70,7 +70,7 @@ ifeq (FreeBSD,$(uname_S))
|
|||||||
EV_CONFIG=config_freebsd.h
|
EV_CONFIG=config_freebsd.h
|
||||||
EIO_CONFIG=config_freebsd.h
|
EIO_CONFIG=config_freebsd.h
|
||||||
CPPFLAGS += -Isrc/ares/config_freebsd
|
CPPFLAGS += -Isrc/ares/config_freebsd
|
||||||
LINKFLAGS+=
|
LINKFLAGS+=-lkvm
|
||||||
OBJS += src/unix/freebsd.o
|
OBJS += src/unix/freebsd.o
|
||||||
OBJS += src/unix/kqueue.o
|
OBJS += src/unix/kqueue.o
|
||||||
endif
|
endif
|
||||||
|
|||||||
5
uv.gyp
5
uv.gyp
@ -250,6 +250,11 @@
|
|||||||
'EV_CONFIG_H="config_freebsd.h"',
|
'EV_CONFIG_H="config_freebsd.h"',
|
||||||
'EIO_CONFIG_H="config_freebsd.h"',
|
'EIO_CONFIG_H="config_freebsd.h"',
|
||||||
],
|
],
|
||||||
|
'direct_dependent_settings': {
|
||||||
|
'libraries': [
|
||||||
|
'-lkvm',
|
||||||
|
],
|
||||||
|
},
|
||||||
}],
|
}],
|
||||||
[ 'OS=="openbsd"', {
|
[ 'OS=="openbsd"', {
|
||||||
'include_dirs': [ 'src/ares/config_openbsd' ],
|
'include_dirs': [ 'src/ares/config_openbsd' ],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user