This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
FreeBSD configure patch review wanted
- To: gcc-patches at gcc dot gnu dot org
- Subject: FreeBSD configure patch review wanted
- From: "David O'Brien" <obrien at NUXI dot com>
- Date: Wed, 7 Jun 2000 11:41:27 -0700
- Cc: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>, rittle at rsch dot comm dot mot dot com
- Reply-To: obrien at NUXI dot com
This patch allows GCC to be built on FreeBSD from CVS soruces after the
``config.guess'' update. I would like feed back on these patches. The
``configure'' one of course would not be committed, but it is here to
help people test my change.
-- David (obrien@FreeBSD.org)
Index: configure
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure,v
retrieving revision 1.380
diff -u -r1.380 configure
--- configure 2000/06/06 22:04:08 1.380
+++ configure 2000/06/07 18:39:02
@@ -4341,7 +4341,11 @@
# Next line turned off because both 386BSD and BSD/386 use GNU ld.
# use_collect2=yes
;;
- i[34567]86-*-freebsdelf*)
+ i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
+ tm_file="i386/freebsd.h i386/perform.h"
+ tmake_file=t-freebsd
+ ;;
+ i[34567]86-*-freebsd*)
tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
tmake_file=t-freebsd
@@ -4354,10 +4358,6 @@
tmake_file="${tmake_file} t-freebsd-thread"
;;
esac
- ;;
- i[34567]86-*-freebsd*)
- tm_file="i386/freebsd.h i386/perform.h"
- tmake_file=t-freebsd
;;
i[34567]86-*-netbsd*)
tm_file=i386/netbsd.h
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.384
diff -u -r1.384 configure.in
--- configure.in 2000/06/06 17:36:34 1.384
+++ configure.in 2000/06/07 18:36:30
@@ -1436,8 +1436,14 @@
# use_collect2=yes
;;
changequote(,)dnl
- i[34567]86-*-freebsdelf*)
+ i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
changequote([,])dnl
+ tm_file="i386/freebsd.h i386/perform.h"
+ tmake_file=t-freebsd
+ ;;
+changequote(,)dnl
+ i[34567]86-*-freebsd*)
+changequote([,])dnl
tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
tmake_file=t-freebsd
@@ -1450,12 +1456,6 @@
tmake_file="${tmake_file} t-freebsd-thread"
;;
esac
- ;;
-changequote(,)dnl
- i[34567]86-*-freebsd*)
-changequote([,])dnl
- tm_file="i386/freebsd.h i386/perform.h"
- tmake_file=t-freebsd
;;
changequote(,)dnl
i[34567]86-*-netbsd*)