Problem: tweetnacl does not build on Solaris 10

Solution: add Wnosign-compare to CPPFLAGS. GCC version is too old on
Solaris 10 to use pragma diagnostic (min 4.2 needed, but 3.4 is
available)
This commit is contained in:
Luca Boccassi 2016-04-12 00:09:08 +01:00
parent d570f57b6e
commit abe44500de

View File

@ -165,7 +165,7 @@ case "${host_os}" in
;;
*solaris*)
# Define on Solaris to enable all library features
CPPFLAGS="-D_PTHREADS $CPPFLAGS"
CPPFLAGS="-Wno-sign-compare -D_PTHREADS $CPPFLAGS"
AC_DEFINE(ZMQ_HAVE_SOLARIS, 1, [Have Solaris OS])
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, gethostbyname)