Files
cdesktop/cde/programs/dtksh/ksh93/src/cmd/INIT/cc.sgi.mips4-n32
Martijn Dekker bf00d3b274 dtksh: Upgrade ksh93 to 1.0.0-beta.2 2021-12-28
Patch from current ksh93 maintainer <https://github.com/ksh93/ksh>.

cde/programs/dtksh/ksh93/**:
- Upgraded. A load of bugs fixed, some minor features added.
  See NEWS from 2021-02-01 upwards.

cde/programs/dtksh/Makefile.am:
- Don't cd into ksh93 any more to invoke the package or shtests
  scripts; they now automatically find their directories.
- Pass $(CFLAGS) to build ksh with optimisation.
- Remove -D_std_malloc flag as vmalloc is now deprecated and disabled
  by default.
- Add a 'make check' target to Makefile.am that runs the ksh93
  regression tests on dtksh to make sure the additions don't interfere
  with anything. It skips running the tests with shcomp because CDE
  doesn't use that. The tests all pass here on Slackware 14.2. :-)

cde/programs/dtksh/init.patch:
- Removed; I've upstreamed it. It was the only one that wasn't upstreamed
  yet, and more code cleanups are coming, breaking downstream patches. If
  something needs updating, just email me a diff.

cde/programs/dtksh/dtkcmds.h:
- Update the ADDBUILTIN macro to remove the __PROTO__ macro use. The
  proto(1) tool, responsible for all such pre-C89 K&R C compatibility
  voodoo, has been removed, so that macro is no longer defined.

cde/programs/dtksh/setup.sh:
- Workaround script removed. I rewrote 'bin/package flat make' in a way
  that works correctly and changed Makefile.am to use that instead.

Hope this helps. Happy new year.
2022-07-09 17:50:35 -06:00

66 lines
953 B
Plaintext
Executable File

: sgi.mips4-n32 cc wrapper that generates MIPS IV N32 binaries : 2006-02-14 :
HOSTTYPE=sgi.mips4-n32
case " $* " in
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
esac
cc=/usr/bin/cc
debug=
dynamic=-G0
flags=
ignore=1685,733,1048,1155,1171,1184,1209,1343,3169,3170,3433
ldignore=15,84,85,13
optimize=
case $_AST_cc_OPTIONS in
?*) eval $_AST_cc_OPTIONS ;;
esac
case $ignore in
?*) ignore="-woff $ignore" ;;
esac
case $ldignore in
?*) ifs=$IFS
IFS=,
v=$ldignore
ldignore=
for i in $v
do ldignore="$ldignore -Wl,-woff,$i"
done
IFS=$ifs
;;
esac
case $debug in
?*) integer n=0
for i
do case $i in
-g*) case $debug in
-) continue ;;
esac
i=$debug
;;
esac
a[n++]=$i
done
set -- ${a[@]}
;;
esac
case $optimize in
?*) integer n=0
for i
do case $i in
-O*) case $optimize in
-) continue ;;
esac
i=$optimize
;;
esac
a[n++]=$i
done
set -- ${a[@]}
;;
esac
$cc -n32 -mips4 $flags $dynamic $ldignore $ignore "$@"