summaryrefslogtreecommitdiff
path: root/lang/guile22
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2019-12-09 04:51:57 +0000
committergutteridge <gutteridge@pkgsrc.org>2019-12-09 04:51:57 +0000
commit17c16836c9cb7dc065f51b13ad4e56dc3afd532d (patch)
treeb7e43e0bc292768d8055ba0457952f5c124f8c3a /lang/guile22
parent9a7b5e4f46b7002befaf69ac2cc76c7ff39e708a (diff)
downloadpkgsrc-17c16836c9cb7dc065f51b13ad4e56dc3afd532d.tar.gz
guile22: fix SunOS builds on releases that provide accept4()
Curiously, the only thing stopping this from building was the second accept4() test in the configure script, which doesn't supply the necessary linker arguments. Elsewhere, the build configuration does correctly set those same arguments. On current members of the SunOS family, this meant it would falsely think accept4() wasn't defined when it really was, which would then lead to a signature mismatch during compilation.
Diffstat (limited to 'lang/guile22')
-rw-r--r--lang/guile22/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/guile22/Makefile b/lang/guile22/Makefile
index 182ceb69945..498a188adab 100644
--- a/lang/guile22/Makefile
+++ b/lang/guile22/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2019/11/10 17:49:21 maya Exp $
+# $NetBSD: Makefile,v 1.16 2019/12/09 04:51:57 gutteridge Exp $
DISTNAME= guile-2.2.6
PKGNAME= ${DISTNAME:S/guile/guile22/}
@@ -21,6 +21,8 @@ CONFIGURE_ARGS+= --disable-shared
# not until boehm-gc is threaded
CONFIGURE_ARGS+= --without-threads
CONFIGURE_ARGS+= SHELL=${CONFIG_SHELL}
+# Needed to work around broken configure check for accept4()
+LDFLAGS.SunOS+= -lsocket -lnsl
.if !empty(GUILE_SUBDIR)
# Installation prefix is non-default.