build: link against libdl on linux

This commit is contained in:
Ben Noordhuis 2012-03-05 15:28:27 +01:00
parent b55801f225
commit a93dc7ef11
2 changed files with 6 additions and 3 deletions

View File

@ -62,7 +62,7 @@ EV_CONFIG=config_linux.h
EIO_CONFIG=config_linux.h
CSTDFLAG += -D_GNU_SOURCE
CPPFLAGS += -Isrc/ares/config_linux
LINKFLAGS+=-lrt
LINKFLAGS+=-ldl -lrt
OBJS += src/unix/linux/core.o src/unix/linux/inotify.o
endif
@ -116,8 +116,6 @@ endif
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE
RUNNER_LINKFLAGS=$(LINKFLAGS)
RUNNER_LINKFLAGS += -ldl
ifeq (SunOS,$(uname_S))
RUNNER_LINKFLAGS += -pthreads
else

5
uv.gyp
View File

@ -32,6 +32,11 @@
],
'direct_dependent_settings': {
'include_dirs': [ 'include' ],
'conditions': [
['OS=="linux"', {
'libraries': [ '-ldl' ],
}],
],
},
'defines': [