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

View File

@@ -21,11 +21,6 @@
MAKE_CMD = $(MAKE) $(MAKE_OPTS)
NMAKE_CMD = $(NMAKE) $(MAKE_OPTS)
FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
SUIDEXECDEFINES = \
-DPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/profile\" \
-DSUIDPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/suid_profile\" \
-DSUIDEXECPATH=\"$(CDE_INSTALLATION_TOP)/bin/suid_exec\" \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" -DBUILD_DTKSH
CDE_CONFIGURATION_TOP = /etc/dt
CDE_INSTALLATION_TOP = /usr/dt
@@ -58,10 +53,6 @@ World:
;; esac;
@date
@echo ""
# this is a weird glitch in the build process, will probably be solved
# with autotools conversion, but we need to build here for now
cd programs/dtksh/ksh93; ./bin/package clean
cd programs/dtksh/ksh93; ./bin/package make CCFLAGS='$(SUIDEXECDEFINES) -g'
cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
$(MAKE) $(MFLAGS) Makefile.boot
$(MAKE_CMD) $(MFLAGS) VerifyOS