summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2011-04-05 18:48:28 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2011-04-05 18:48:28 +0000
commitff7b8619a9913d659ebfcd6f5e5968081d98d873 (patch)
tree9c04a9ad1f598a4bffb0a954eaf8d09558562ae5
parent060d225c79062d172d1d217aa5a6df33ccd900a7 (diff)
Allow GCC2 to be used as a cross compiler from amd64 (can build m68k and sparc
with some additional assistance). ok miod@ Useful to quickly build kernels, say at hackathons.
-rw-r--r--gnu/egcs/gcc/config.gcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/config.gcc b/gnu/egcs/gcc/config.gcc
index 3be8df83234..78fed21768f 100644
--- a/gnu/egcs/gcc/config.gcc
+++ b/gnu/egcs/gcc/config.gcc
@@ -2784,6 +2784,10 @@ we32k-att-sysv*)
xm_file="${xm_file} xm-svr3"
use_collect2=yes
;;
+x86_64-*-openbsd*)
+ # only here to allow cross compiles.
+ xm_file="i386/xm-openbsd.h"
+ ;;
*)
echo "Configuration $machine not supported" 1>&2
exit 1