dtksh: use bin/package flat make instead of shell

Shell isn't portable, so upstream ksh93 has a "flat" function that we can use
to put binaries in a static place that doesn't require a shell command. We still
do need an intermediate setup.sh shell script due to a bug in ksh that object
files aren't being put in lib, and FEATURE not in include. We also cut out some
 unused symbols, and a hpux specific implementation of dynlib (new hpux should
 conform to the posix implementation anyhow.)
This commit is contained in:
Chase
2020-12-28 20:35:39 -06:00
committed by Jon Trulson
parent f884dce398
commit 90fff44682
10 changed files with 28 additions and 821 deletions

9
cde/programs/dtksh/setup.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
#this script is necessary due to a bug in ksh where flat make doesnt actually
#put all assets we need in the proper directories
HOSTDIR=$(./ksh93/bin/package host)
cp ./ksh93/arch/$HOSTDIR/src/cmd/ksh93/pmain.o pmain.o
ln -s ./ksh93/arch/$HOSTDIR/src/cmd/ksh93/FEATURE FEATURE