summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2011-04-05 18:48:27 +0000
committerdrahn <drahn@openbsd.org>2011-04-05 18:48:27 +0000
commit5d34d2dd2211638d0b49ec8779920b4d9ca7a563 (patch)
treefbd1050f2474f37c2322fb86655197e66c8e513e
parentMove session related code into session.c. (diff)
downloadwireguard-openbsd-5d34d2dd2211638d0b49ec8779920b4d9ca7a563.tar.xz
wireguard-openbsd-5d34d2dd2211638d0b49ec8779920b4d9ca7a563.zip
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