core: link with resolv library only on Mac OS X
This fixes build on FreeBSD.
This commit is contained in:
parent
e098a0dc54
commit
228040dc04
@ -55,6 +55,9 @@ netbsd*)
|
||||
solaris*)
|
||||
LDFLAGS="$LDFLAGS -lsocket -lxnet"
|
||||
;;
|
||||
darwin*)
|
||||
LDFLAGS="$LDFLAGS -lresolv"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Gettext
|
||||
|
@ -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})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user