summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-12-11 12:00:34 +0000
committermarino <marino@pkgsrc.org>2011-12-11 12:00:34 +0000
commit9e157d22d566af8baf3eb5d741600dd5abd039a6 (patch)
tree9c3cb4b2f04dc6fc0166893ccf82282bd72de78b /shells
parentb8a2a7200c6989f9299af644e8a430044190af51 (diff)
downloadpkgsrc-9e157d22d566af8baf3eb5d741600dd5abd039a6.tar.gz
shells/ast-ksh: Fix DragonFly
Add libm to CFLAGS when building on DragonFly to allow build to complete. Contributed-by: Chris Turner
Diffstat (limited to 'shells')
-rw-r--r--shells/ast-ksh/Makefile.common11
1 files changed, 10 insertions, 1 deletions
diff --git a/shells/ast-ksh/Makefile.common b/shells/ast-ksh/Makefile.common
index 0fbecc3bcc4..b2677a51e08 100644
--- a/shells/ast-ksh/Makefile.common
+++ b/shells/ast-ksh/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.26 2011/09/24 12:03:19 ryoon Exp $
+# $NetBSD: Makefile.common,v 1.27 2011/12/11 12:00:34 marino Exp $
DISTNAME= ast-ksh-${ASTKSH_VERSION}
PKGNAME= ast-ksh-${ASTKSH_VERSION:S/-//g}
@@ -36,6 +36,15 @@ MAKE_FLAGS+= CC=${CC:Q} CCFLAGS=${CFLAGS:M*:Q}
PDKSH= /bin/ksh
.endif
+# Link with libm to fix sfcvt link error -
+# this is kind of a hack -
+# better would be to fix the 'meta makefile' to pass this
+# or to use the ksh-provided math routines.
+
+.if ${OPSYS} == "DragonFly"
+KSH93_MAKEFLAGS+= CCFLAGS=-lm
+.endif
+
PKG_SHELL= bin/ksh93
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1