diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-12-17 20:33:39 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-12-17 20:33:39 +0100 |
commit | 228040dc04648507d9a57dcc6324d436cd97a4bc (patch) | |
tree | 30dc65f0857eb7acbd4e31e6aebc628176516591 | |
parent | e098a0dc5414f67006c9e8f0ff02f22f715a0a55 (diff) | |
download | weechat-228040dc04648507d9a57dcc6324d436cd97a4bc.zip |
core: link with resolv library only on Mac OS X
This fixes build on FreeBSD.
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/gui/curses/CMakeLists.txt | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3f9ee5220..719be40fe 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,9 @@ netbsd*) solaris*) LDFLAGS="$LDFLAGS -lsocket -lxnet" ;; +darwin*) + LDFLAGS="$LDFLAGS -lresolv" + ;; esac # Gettext diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt index 18b77f8f2..a46821427 100644 --- a/src/gui/curses/CMakeLists.txt +++ b/src/gui/curses/CMakeLists.txt @@ -73,7 +73,10 @@ list(APPEND EXTRA_LIBS "m") list(APPEND EXTRA_LIBS ${CURL_LIBRARIES}) -list(APPEND EXTRA_LIBS "resolv") +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + # link with resolv lib on Mac OS X + list(APPEND EXTRA_LIBS "resolv") +endif() include_directories(.. ../../core ../../plugins ${NCURSES_INCLUDE_PATH}) |