summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino>2011-12-11 12:00:34 +0000
committermarino <marino>2011-12-11 12:00:34 +0000
commit9599ecd329584a3246c9e530a471b1c5351f750f (patch)
tree9c3cb4b2f04dc6fc0166893ccf82282bd72de78b
parent7b64db87b21f083172342f8e45ba19822331891a (diff)
downloadpkgsrc-9599ecd329584a3246c9e530a471b1c5351f750f.tar.gz
shells/ast-ksh: Fix DragonFly
Add libm to CFLAGS when building on DragonFly to allow build to complete. Contributed-by: Chris Turner
-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