kitgen IRIX

Rene Zaumseil <[email protected]>
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
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
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.