Navigation Menu

Skip to content

Commit

Permalink
windows: link dbghelp
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 16, 2017
1 parent 28fda9f commit 5472b64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
@@ -1,4 +1,4 @@
# Copyright(C) 2012-2016 Brazil
# Copyright(C) 2012-2017 Brazil
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -308,6 +308,8 @@ if(WIN32)
set(HAVE_LIBWS2_32 TRUE)
set(WS2_32_LIBS "ws2_32.lib")

SET(DBGHELP_LIBS "dbghelp.lib")

set(USE_SELECT TRUE)
else()
ac_check_headers(sys/epoll.h)
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -677,7 +677,7 @@ int main(int argc, char **argv)
# MinGW
if test "$os_win32" = "yes"; then
WINDOWS_LDFLAGS="-mwindows"
WINDOWS_LIBS="-ladvapi32 -lws2_32"
WINDOWS_LIBS="-ladvapi32 -lws2_32 -ldbghelp"
else
WINDOWS_LDFLAGS=
WINDOWS_LIBS=
Expand Down
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Expand Up @@ -100,6 +100,7 @@ set(GRN_ALL_LIBRARIES
${DL_LIBS}
${M_LIBS}
${WS2_32_LIBS}
${DBGHELP_LIBS}
${MRUBY_LIBS}
${ONIGMO_LIBS})
if(GRN_EMBED)
Expand Down

0 comments on commit 5472b64

Please sign in to comment.