kitgen IRIX

"rene" <[email protected]>
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
Hi,

to build tclkits for IRIX try the following:

1. Remove "@PKG_INCLUDES@" in "tclvfs/Makefile.in". It gives a -I""
and that
failed to compile.

2. Make sure "ranlib" is empty command.

3. 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


4. 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
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.