From 76738483252247770695f912f6cd7d06594a4dbc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 30 Aug 2016 21:25:47 +0900 Subject: [PATCH] Add -lsocket -lnsl to APPLDFLAGS for solaris build As suggested in GH-674 --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d06f11b0..65f8e1e2 100644 --- a/configure.ac +++ b/configure.ac @@ -246,7 +246,7 @@ TESTLDADD= # Additional libraries required for programs under src directory. APPLDFLAGS= -case "$host" in +case "$host_os" in *android*) android_build=yes # android does not need -pthread, but needs followng 3 libs for C++ @@ -258,6 +258,12 @@ case "$host" in ;; esac +case "$host_os" in + *solaris*) + APPLDFLAGS="$APPLDFLAGS -lsocket -lnsl" + ;; +esac + # zlib PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3], [have_zlib=yes], [have_zlib=no])