Skip to content

Commit

Permalink
Get ast-ksh building again on NetBSD, at least on amd64.
Browse files Browse the repository at this point in the history
  • Loading branch information
ad committed Apr 17, 2020
1 parent 04ae075 commit d4aa560
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions shells/ast-ksh/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.35 2017/02/19 20:18:16 maya Exp $
# $NetBSD: Makefile.common,v 1.36 2020/04/17 21:28:01 ad Exp $
#
# used by shells/ast-ksh/Makefile
# used by shells/static-ast-ksh/Makefile
Expand All @@ -16,6 +16,8 @@ HOMEPAGE= http://www.kornshell.com/
COMMENT= Official AT&T release of KornShell 93
LICENSE= epl-v1.0

USE_TOOLS= bash

NOT_FOR_PLATFORM= Interix-*-* # taking nearly a day to build and crash!

CONFLICTS= static-ast-ksh-[0-9]*
Expand All @@ -29,7 +31,9 @@ MAKE_FLAGS+= CC=${CC:Q} CCFLAGS=${CFLAGS:M*:Q}
.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
PDKSH= /bin/ksh
PDKSH= ${TOOLS_PATH.bash}
KSH93_MAKEFLAGS+= "SHELL=${PDKSH}"
KSH93_MAKEFLAGS+= "CCFLAGS=-D_NETBSD_SOURCE"
.endif

# Link with libm to fix sfcvt link error -
Expand Down
4 changes: 2 additions & 2 deletions shells/static-ast-ksh/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2019/11/04 21:14:07 rillig Exp $
# $NetBSD: Makefile,v 1.16 2020/04/17 21:28:01 ad Exp $
#

.include "../../shells/ast-ksh/Makefile.common"
Expand All @@ -17,6 +17,6 @@ COMMENT:= Statically-linked version of the ${COMMENT}
# SunOS 5.10 stopped shipping static libraries
NOT_FOR_PLATFORM+= SunOS-5.1[0-9]-*

KSH93_MAKEFLAGS= LDFLAGS=-static
KSH93_MAKEFLAGS+= LDFLAGS=-static

.include "../../mk/bsd.pkg.mk"

0 comments on commit d4aa560

Please sign in to comment.