Add -lsocket -lnsl to APPLDFLAGS for solaris build

As suggested in GH-674
This commit is contained in:
Tatsuhiro Tsujikawa 2016-08-30 21:25:47 +09:00
parent 0f8a5ffc23
commit 7673848325
1 changed files with 7 additions and 1 deletions

View File

@ -246,7 +246,7 @@ TESTLDADD=
# Additional libraries required for programs under src directory. # Additional libraries required for programs under src directory.
APPLDFLAGS= APPLDFLAGS=
case "$host" in case "$host_os" in
*android*) *android*)
android_build=yes android_build=yes
# android does not need -pthread, but needs followng 3 libs for C++ # android does not need -pthread, but needs followng 3 libs for C++
@ -258,6 +258,12 @@ case "$host" in
;; ;;
esac esac
case "$host_os" in
*solaris*)
APPLDFLAGS="$APPLDFLAGS -lsocket -lnsl"
;;
esac
# zlib # zlib
PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no]) PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no])