From 9599ecd329584a3246c9e530a471b1c5351f750f Mon Sep 17 00:00:00 2001 From: marino Date: Sun, 11 Dec 2011 12:00:34 +0000 Subject: shells/ast-ksh: Fix DragonFly Add libm to CFLAGS when building on DragonFly to allow build to complete. Contributed-by: Chris Turner --- shells/ast-ksh/Makefile.common | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3