[Starkit] kitgen IRIX
Rene Zaumseil
r.zaumseil at freenet.de
Fri Mar 9 09:36:45 CET 2007
Hello,
I have created some tclkits for IRIX (sources from 25. Feb.) with native "cc"
and "gcc". Where should I put the binaries?
Here are the necessary source code changes:
1. Patch "tcl/unix/tclUnixPipe.c" (bug in tcl, see
http://sourceforge.net/tracker/index.php?func=detail&aid=878333&group_id=10894&atid=110894).
2. Remove "@PKG_INCLUDES@" in "tclvfs/Makefile.in". It gives a -I"" and that
failed to compile.
3. Make sure "ranlib" is empty command.
4. Patch "vlerq/generic/vlerq.c". Include use of IRIX systems.
>#ifdef __sgi__
>#define VALUES_MUST_BE_ALIGNED 1
>#endif
>
>#ifndef __sparc__
> #ifndef __sgi__
>typedef unsigned char uint8_t;
> #endif
>#endif
5. Patch "config.sh". Include IRIX systems:
Enable threads (both "cc" and "gcc"):
> case $thread in
> 1) case $mach in Linux|SunOS|IRIX64)
> echo "LDFLAGS += -lpthread" ;;
> esac
> echo "TCL_OPTS = --enable-threads"
> echo "KIT_OPTS = -t$kitopts" ;;
> 0) echo "KIT_OPTS =$kitopts" ;;
> esac
Compile IRIX with native "cc". "gcc" must be removed from PATH
> IRIX64)
> echo "LDFLAGS = -lm"
> echo "LDSTRIP = -f"
> echo "CC = cc"
> echo "CFLAGS = -mips4 -n32 -DHAVE_LONG_LONG -D__sgi__"
> echo "GUI_OPTS = -lX11 -lXext"
> ;;
Compile IRIX with "gcc":
> IRIX64)
> echo "LDFLAGS = -lm"
> echo "LDSTRIP = -f"
> echo "CC = gcc"
> echo "CFLAGS = -mabi=n32 -DHAVE_LONG_LONG -D__sgi__"
> echo "GUI_OPTS = -lX11 -lXext"
> ;;
Rene
r.zaumseil at freenet.de
More information about the Starkit
mailing list