Subject: re: Patches for crossbuilding on DragonFlyBSD
To: None <tgen@netphreax.net>
From: matthew green <mrg@eterna.com.au>
List: tech-toolchain
Date: 01/12/2006 18:39:15
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/configure.in ./dist/gcc/configure.in
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/configure.in 2004-02-10 12:56:21.000000000 +0000
+++ ./dist/gcc/configure.in 2005-10-12 01:00:51.000000000 +0000
@@ -424,6 +424,9 @@
i[34567]86-*-freebsd*)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
+ i[34567]86-*-dragonflybsd*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
+ ;;
i[3456]86-*-linux*)
# The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
# not build java stuff by default.
this doesn't seem necessary to build netbsd.
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonfly-spec.h ./dist/gcc/gcc/config/dragonfly-spec.h
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonfly-spec.h 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/dragonfly-spec.h 2005-10-12 01:36:30.000000000 +0000
@@ -0,0 +1,186 @@
+/* $DragonFly: src/gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h,v 1.10 2005/08/03 03:12:00 joerg Exp $ */
+
+/* Base configuration file for all DragonFly targets.
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
[ ... ]
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonfly.h ./dist/gcc/gcc/config/dragonfly.h
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonfly.h 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/dragonfly.h 2005-10-12 01:36:46.000000000 +0000
@@ -0,0 +1,94 @@
+/* $DragonFly: src/gnu/usr.bin/cc34/cc_prep/config/dragonfly.h,v 1.1 2004/06/14 22:27:53 joerg Exp $ */
+
+/* Base configuration file for all DragonFly targets.
+ Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
[ ... ]
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonflybsd-nthr.h ./dist/gcc/gcc/config/dragonflybsd-nthr.h
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonflybsd-nthr.h 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/dragonflybsd-nthr.h 2005-10-12 01:28:41.000000000 +0000
@@ -0,0 +1,22 @@
+/* FreeBSD configuration setting for FreeBSD systems.
[ ... ]
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonflybsd-spec.h ./dist/gcc/gcc/config/dragonflybsd-spec.h
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/dragonflybsd-spec.h 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/dragonflybsd-spec.h 2005-10-12 01:29:44.000000000 +0000
@@ -0,0 +1,150 @@
+/* Base configuration file for all FreeBSD targets.
[ ... ]
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/i386/dragonfly.h ./dist/gcc/gcc/config/i386/dragonfly.h
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/i386/dragonfly.h 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/i386/dragonfly.h 2005-10-12 01:38:15.000000000 +0000
@@ -0,0 +1,152 @@
+/* $DragonFly: src/gnu/usr.bin/cc34/cc_prep/config/i386/dragonfly.h,v 1.2 2005/05/11 19:46:50 dillon Exp $ */
+
+/* Definitions for Intel 386 running DragonFly with ELF format
[ ... ]
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/t-dragonflybsd ./dist/gcc/gcc/config/t-dragonflybsd
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/t-dragonflybsd 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/t-dragonflybsd 2005-10-12 01:27:30.000000000 +0000
@@ -0,0 +1,8 @@
+# Don't run fixproto
[ ... ]
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/t-dragonflybsd-thread ./dist/gcc/gcc/config/t-dragonflybsd-thread
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config/t-dragonflybsd-thread 1970-01-01 00:00:00.000000000 +0000
+++ ./dist/gcc/gcc/config/t-dragonflybsd-thread 2005-10-12 01:28:05.000000000 +0000
@@ -0,0 +1,2 @@
+# This is currently needed to compile libgcc2 for threads support
+TARGET_LIBGCC2_CFLAGS += -pthread
diff -ruN /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config.gcc ./dist/gcc/gcc/config.gcc
--- /home/tgen/files/netbsd/src/gnu/dist/gcc/gcc/config.gcc 2005-08-17 07:13:32.000000000 +0000
+++ ./dist/gcc/gcc/config.gcc 2005-10-12 01:50:01.000000000 +0000
[ ... ]
all of these seem only relevant for DF targets, which don't matter
for src/gnu/dist/gcc.
what problems do you have trying to build today that these patches
solve? i believe that the config.sub/config.guess patches may be
needed, but all the new code specific for DF targets seems wrong.
.mrg.