dash
This page shows how to cross-compile dash for AT&T UnixPC. A pre-compiled binary is also available.
(Dash is useful if you need a POSIX-compliant shell to run configure scripts for other software packages on the UnixPC itself, as the UnixPC builtin shell is not POSIX compliant, and fails to run many configure scripts.)
To cross-compile dash, you need:- Mike Haertel's gcc cross-compiler for UnixPC
- Original Dash sources
- This patch with portability fixes, and fallback implementation for library functions needed by dash which are not present on UnixPC. This patch has been sent to the dash mailing list (on November 17th 2024), so it might make it into the next version, and no longer be needed eventually.
Once you have downloaded these, build and install the cross compiler (if not yet done), and then follow the below instructions:
tar xzvf dash-0.5.12.tar.gz
mv dash-0.5.12 portable-dash
cd portable-dash
patch -p1 -s <../dash-0.5.12.diff
cd ..
mkdir compile-dash
cd compile-dash
../portable-dash/configure CC=/usr/local/bin/unixpc-gcc CFLAGS="-shlib -fomit-frame-pointer -Wno-implicit-function-declaration -DJOBS=0 -s" --host unixpc
make
The compiled binary will be found in src/dash, you can transfer it to the UnixPC using kermit over the serial line, or using mtools.