Fix build on SunOS.

Disable gethostbyname_r since the version of SunOS is different from
what the code expects. Add a few libs.
This commit is contained in:
hans 2011-09-14 16:56:54 +00:00
parent 3aabd9495c
commit 5f587a9115

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/04/22 13:42:00 obache Exp $
# $NetBSD: Makefile,v 1.7 2011/09/14 16:56:54 hans Exp $
#
DISTNAME= scim-1.4.9
@ -41,6 +41,12 @@ INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
# for DLOPEN_REQUIRE_PTHREADS
PTHREAD_AUTO_VARS= yes
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CONFIGURE_ENV+= ac_cv_func_gethostbyname_r=no
LDFLAGS.SunOS+= -lsocket -lnsl
.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk2/buildlink3.mk"