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, 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.11.5.tar.gz mv dash-0.5.11.5 portable-dash cd portable-dash patch -p1 -s <../dash.diff cd .. mkdir compile-dash cd compile-dash ../portable-dash/configure CC=/opt/unixpc/bin/unixpc-gcc --host unixpc --disable-fnmatch make
To link dash with the shared library, add CFLAGS="-shlib -O3 -Os -fomit-frame-pointer" to the configure command line.
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.