Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 15:12:01 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        freebsd-alpha@FreeBSD.ORG
Subject:   egcs port for alpha
Message-ID:  <19990129151201O.simokawa@sat.t.u-tokyo.ac.jp>

next in thread | raw e-mail | index | archive | help
----Next_Part(Fri_Jan_29_15:10:31_1999_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

  I made a patch for egcs port in our tree. I successfully compiled
xemacs and kernel (with some tweaks) with this egcs and I'm running the
kernel. The most important part is in:
http://www.freebsd.org/~simokawa/egcs-freebsd-alpha-supplement.tar.bz2

  I don't know much about configuration of egcs. I appreciate if
some experts check the files in the archive.

/\ Hidetoshi Shimokawa
\/  simokawa@sat.t.u-tokyo.ac.jp
PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp

----Next_Part(Fri_Jan_29_15:10:31_1999_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=egcs.diff

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/egcs/Makefile,v
retrieving revision 1.42
diff -u -u -r1.42 Makefile
--- Makefile	1998/12/26 20:10:02	1.42
+++ Makefile	1999/01/29 06:01:45
@@ -13,8 +13,12 @@
 		ftp://ftp.funet.fi/mirrors/ftp.cygnus.com/pub/egcs/releases/egcs-1.1.1/ \
 		ftp://egcs.cygnus.com/pub/egcs/releases/egcs-1.1.1/ \
 		ftp://ftp.fu-berlin.de/unix/languages/egcs/releases/egcs-1.1.1/ \
-		ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.1.1/
-EXTRACT_SUFX=	.tar.bz2
+		ftp://cambridge.cygnus.com/pub/egcs/releases/egcs-1.1.1/ \
+		http://www.freebsd.org/~simokawa/
+DISTFILES=	egcs-1.1.1.tar.bz2
+.if ${MACHINE_ARCH} == "alpha"
+DISTFILES+=	egcs-freebsd-alpha-supplement.tar.bz2
+.endif
 
 MAINTAINER=	obrien@FreeBSD.org
 
@@ -29,7 +33,9 @@
 LIBSTDCPP_REV=	2.9.0
 
 .if ${PORTOBJFORMAT} == "elf"
+.if ${MACHINE_ARCH} == "i386"
 PLIST=		${WRKDIR}/PLIST
+.endif
 #GNUHOST=	${ARCH}-unknown-freebsdelf${OSREL}
 GNUHOST=	${ARCH}-unknown-freebsdelf
 .else
@@ -52,7 +58,7 @@
 	${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd.h.in >freebsd.h ; \
 	${MV} freebsd-elf.h freebsd-elf.h.in ; \
 	${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" freebsd-elf.h.in >freebsd-elf.h)
-.if ${PORTOBJFORMAT} == "elf"
+.if ${MACHINE_ARCH} == "i386" && ${PORTOBJFORMAT} == "elf"
 	@${SED} -e 's/^@comment ELF-only://' ${PKGDIR}/PLIST >${PLIST}
 .endif
 
Index: files/md5
===================================================================
RCS file: /home/ncvs/ports/lang/egcs/files/md5,v
retrieving revision 1.20
diff -u -u -r1.20 md5
--- md5	1998/12/05 04:00:40	1.20
+++ md5	1999/01/29 06:01:45
@@ -1 +1,2 @@
 MD5 (egcs-1.1.1.tar.bz2) = 854ed488f030075e4a4ac1fbedcb27fb
+MD5 (egcs-freebsd-alpha-supplement.tar.bz2) = e414a20f36554d084988e603b3b5725d
Index: patches/patch-ak
===================================================================
RCS file: /home/ncvs/ports/lang/egcs/patches/patch-ak,v
retrieving revision 1.1
diff -u -u -r1.1 patch-ak
--- patch-ak	1998/12/25 19:42:01	1.1
+++ patch-ak	1999/01/29 06:01:45
@@ -1,6 +1,22 @@
---- gcc/configure.orig	Wed Dec  2 11:22:52 1998
-+++ gcc/configure	Fri Dec 25 00:35:40 1998
-@@ -2752,6 +2752,7 @@
+--- gcc/configure.orig	Thu Dec  3 04:22:52 1998
++++ gcc/configure	Sat Jan 16 15:57:44 1999
+@@ -2303,6 +2303,15 @@
+  			thread_file='posix'
+  		fi
+ 		;;
++	alpha*-*-freebsd*)
++		tm_file="${tm_file} freebsd.h alpha/freebsd.h alpha/freebsd-elf.h"
++		xm_file="${xm_file} xm-freebsd.h"
++		target_cpu_default="MASK_GAS"
++		tmake_file="t-freebsd alpha/t-crtbe"
++		xmake_file=none
++		fixincludes=fixinc.wrap
++		gas=yes gnu_ld=yes
++		;;
+ 	alpha*-*-netbsd*)
+ 		tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
+ 		xm_file="xm-netbsd.h ${xm_file}"
+@@ -2752,6 +2761,7 @@
  		tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
  		# On FreeBSD, the headers are already ok, except for math.h.
  		fixincludes=fixinc.wrap

----Next_Part(Fri_Jan_29_15:10:31_1999_809)----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990129151201O.simokawa>