From: harada@kuis.kyoto-u.ac.jp (Michiaki Harada)
Newsgroups: fj.os.msdos
Subject: cross development for go32
Date: 10 Sep 92 02:58:15 GMT
Distribution: fj
Organization: Dept. of Information Science, Kyoto Univ.

$@86ED!w5~Bg>pJs$H(J$@?=$7$^$9!#(J

DOS$@%(%/%9%F%s%@(Jgo32$@MQ$N%3%s%Q%$%k!&%j%s%/$r(JUNIX$@>e$G9T$&$?$a$NJ}K!$,$_$D(J
$@$+$C$?$N$G8fJs9p$7(J$@$^$9!#(J

$@?t%+7n$K$b;n$_$F<:GT$7$?(J($@%3%s%Q%$%k$O$H$b$+$/!"%j%s%/$,$G$-$J$$(J)$@$N$G$9$,!"(J
$@%j%s%/$NLdBj$r4JC1(J$@$K$5$1$kJ}K!$,8+$D$+$j$^$7$?(J.
$@B?J,F1MM$NLdBj$G$"$-$i$a$??M$,B?$$$N$G$O$J$$$+$H;W$&$N$G(J, $@Ej9F$9$k$3$H$K(J
$@$7$^$7$?(J

==========================================================================
$@!}I,MW$J$b$N(J

  MSDOS$@B&(J
	go32, ld, strip
  $@%[%9%HB&(J
	gcc-2.2.2, binutils-2.0, gas-1.38.1
	djgpp1.08$@$N%i%$%V%i%j!"%$%s(J$@%/%k!<%I%U%!%$%k(J

$@!}%[%9%HB&$N@_Dj<j=g(J

	binutils, gas 			-> /usr/local/i386-go32/bin 
	djgpp$@$N%i%$%V(J$@%i%j(J		-> /usr/local/i386-go32/lib
	djgpp$@$N%$%s%/%k!<%I%U%!%$%k(J	-> /usr/local/i386-go32/include

   $@$K(J$@CV$/$3$H$K$J$k!#$3$l$i$O%/%m%9MQ(Jgcc-2.2.2$@$r%3%s%Q%$%k$9$kA0$KMQ0U$9$k$3$H!#(J

   step1
	$@!&(Jgas $@$*$h$S(J binutils-2.0$@$r:n@.$9$k!#(J
	    gas:
		Make a386
	    binutils-2.0:
		configure --host=$@%[%9%HL>(J --target=go32
		Make
   step2
	$@!&(Jgas $@$*$h$S(J binutils-2.0 $@$N%$%s%9%H!<%k(J
		a386 -> /usr/local/bin/i386-go32/bin/as
		ld   -> /usr/local/bin/i386-go32/bin/ld.bin
		$@$=$NB>$N(Jbinutils$@$b(J/usr/local/bin/i386-go32/bin/$@$K(J$@CV$/!#(J

	$@!&(Jld$@$N5/F0%9%/%j%W%H$N5-=R(J
	  /usr/local/bin/i386-go32/bin/ld $@$H$$$&L>A0$N%7%'%k%9%/%j%W%H$r(J
	  $@:n@.$9$k!#(J
	    #!/bin/sh
	    currentdir=`dirname $0`
	    LDEMULATION=go32; export LDEMULATION
	    $currentdir/ld.bin -r $*

	  $@$3$l$O(J binutils $@$K4^$^$l$k(J ld $@$G$O!"(Jgo32$@MQ$N(Ja.out$@7A<0$r(J
	  $@@5$7$/:n(J$@@.$G$-$J$$$N$G!"Cf4VE*$J%*%V%8%'%/%H%U%!%$%k$H(J
	  $@$7$F%j%s%/$9$k$?$a$G$"$k(J($@!}7kO@$r;2>H(J)$@!#(J

   step3
	$@!&%i%$%V%i%j$N%$%s%9%H!<%k(J
	  djgpp$@$NCf$N(J lib*.a, crt*.o $@$r(J /usr/local/bin/i386-go32/lib
	  $@$KCV$/!#(J
	$@!&%$%s%/%k!<%I%U%!%$%k$N%$%s%9%H!<%k(J
	  djgpp$@MQ$N%$%s%/%k!<%I%U%!%$%k$r(J /usr/local/bin/i386-go32/include
	  $@$KCV$/!#$3$N$H$-!"3F%U%!%$%k$N9TKv$N(JCR$@$r=|5n$7$F$*$/$3$H!#(J
   step4
	$@!&(Jgcc-2.2.2$@$N%Q%C%AEv$F(J
	  configure, configure.sub $@$K%Q%C%A$r$"$F$k!#(J($@%Q%C%A$O$3$NJ8=q(J
          $@$NKvHx$K$D$1$F$*$/!#(J)
	  $@$3(J$@$N%Q%C%A$O%M%$%F%#%VMQ(Jgcc$@$K$O1F6A$r$"$?$($J$$$N$G!"FC$K%/%m(J
	  $@%9MQ$K%=!<%9$rJ,$1$kI,MW$O$J$$!#(J
        $@!&(Jmake $@$N$?$a$N%7%'%k%9%/%j%W%H:n@.(J
	  CC$@$d(JLANGUAGES$@$N@_Dj$,LLE]$J$N$G!"<!$N$h$&$J%7%'%k%9%/%j%W%H(JMake
	  $@$r:n$k$H$$$$!#(JCC$@$K(Jgcc$@$r@_Dj$9$k;~$OI,$:%U%k%Q%9$G;XDj$9$k!#(J

	  ($@Nc(J)
	  #!/bin/sh
	  make CC="/usr/local/bin/gcc -O2" LANGUAGES="c" $*

   step5
	$@!&%/%m%9MQ(Jgcc-2.2.2$@$N:n@.!"%$%s%9%H!<%k(J
          $@"((JMake$@$O(Jstep4$@$G=q$$$?(JMake$@$r;HMQ(J
	  configure --host=$@%[%9%HL>(J --target=i386-go32 --gas --with-gnu-ld
	  Make
	  Make install
   step6
	$@!&(Jspecs$@$N=q$-49$((J
	  /usr/local/lib/gcc-lib/i386-go32/2.2.2/spec $@$N(J *cpp: $@$N9`$K(J
	  -D__GO32__ -D__MSDOS__ -DMSDOS -DGO32
	  $@$r=q$-F~$l$k!#(J
	  

$@!}(Jgo32$@MQ%=%U%H$N%/%m%9%3(J$@%s%Q%$%k$N<j=g(J
	makefile $@$N(J CC, LD $@$H$7$F!"(Jgcc-i386-go32 $@$r;HMQ$7!"(Jstrip,ar
	$@$J$I$O(J/usr/local/i386-go32/bin $@$N$7$?$N$b$N$rMxMQ$9$k!#(J

	$@%[%9%HB&$N(JLD$@$O!"(Ja.out$@7A<0$G$O$J$/$F!"%*%V%8%'%/%H%U%!%$%k7A<0(J
	$@$K$J(J$@$C$F$$$k(J(ld $@$r(J -r$@%*%W%7%g%s$D$-$G<B9T$9$k$h$&$K$J$C$F$$$k!#(J
	$@A0@a$N(Jstep2$@$r8+$h(J)$@!#$3$N$h$&$K$7$?M}M3$O(J$@!"%/%m%9%j%s%+$,@5$7$/(J
	go32$@MQ$N(Ja.out$@%U%!%$%k$r:n@.$G$-$J$$$+$i$G$"$k!#(J

	$@%/%m%9%j%s%+$G7k9g$5$l$F$G$-(J$@$?%*%V%8%'%/%H%U%!%$%k$r(Jgo32$@$GF0$/(J
	a.out$@7A<0$KJQ49$9$k$K$O!"(JMSDOS$@$NB&$G(Jdjgpp$@$KImB0$7$F$$$k(Jld$@$r;H(J
	$@MQ(J$@$7!"(J
		ld -o $@=PNO%U%!%$%k(J $@%*%V%8%'%/%H%U%!%$%k(J

	$@$H$9$l$P$h$$!#(J

$@!}7kO@(J
	$@0J>e$G(J go32 $@MQ$N%/%m%9%3%s%Q(J$@%$%k$,2DG=$K$J$k!#(Jbinutils$@$NIT6q9g$N(J
	$@$?$a$K%j%s%/$KB?>/9)IW$,$$$k$,!"$$$C$?$s%*%V%8%'%/%H%U%!%$%k$H$7(J
	$@$F7k9g$9$l$P$=$l$bHf3SE*4JC1$G$"$k$3$H$,$o$+$C$?!#(J


$@0J2<$O!"(Jgcc-2.2.2$@$N(Jconfigure, config.sub $@$N%Q%C(J$@%A(J


*** configure.org	Tue Jun 16 10:24:36 1992
--- configure	Wed Sep  9 20:46:07 1992
***************
*** 224,229 ****
--- 224,233 ----
  #		xm_file=xm-tahoe.h
  #		tm_file=tahoe.h
  #		;;
+ 	i386-*-go32)
+ 		xm_file=xm-i386.h
+ 		tm_file=i386gas.h
+ 		;;
  	i386-*-osfrose*)		# 386 using OSF/rose
  		tm_file=i386rose.h
  		xmake_file=x-i386rose
*** config.sub.org	Wed Sep  9 20:27:18 1992
--- config.sub	Wed Sep  9 20:45:07 1992
***************
*** 62,68 ****
  	-unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | \
  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
! 	-harris | -dolphin)
  		os=
  		basic_machine=$1
  		;;
--- 62,68 ----
  	-unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \
  	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | \
  	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
! 	-harris | -dolphin | -go32 )
  		os=
  		basic_machine=$1
  		;;
***************
*** 93,98 ****
--- 93,102 ----
  		;;
  	# Recognize the various machine names and aliases which stand
  	# for a CPU type and a company and sometimes even an OS.
+ 	i386-go32)
+ 		basic_machine=i386-unknown
+ 		os=-go32
+ 		;;
  	vaxv)
  		basic_machine=vax-dec
  		os=-sysv
***************
*** 456,462 ****
  	      | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
  	      | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* | -amix* \
  	      | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
! 	      | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs*)
  		;;
  	-osfrose*)
  		os=-osfrose
--- 460,466 ----
  	      | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
  	      | -unos* | -osf* | -luna* | -dgux* | -solari* | -sym* | -amix* \
  	      | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \
! 	      | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs* | -go32 )
  		;;
  	-osfrose*)
  		os=-osfrose
***************
*** 502,507 ****
--- 506,514 ----
  case $basic_machine in
  	*-dec | vax-*)
  		os=-ultrix4.2
+ 		;;
+ 	i386-go32)
+ 		os=-go32
  		;;
  	i386-sun)
  		os=-sunos4.0.2



--
Michiaki Harada

Dept.of Information Science, Kyoto University
E-MAIL:   harada@kuis.kyoto-u.ac.jp
Newsgroups: fj.os.msdos