From 91c0c1e45f668675e1596b1bc800245fbf736d59 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Tue, 28 Jan 2014 21:48:00 -0500
Subject: build: Override targets to disable cross builds.

---
diff --git a/build b/build
index 3063dda..9916c90 100755
--- a/build
+++ b/build
@@ -7,6 +7,15 @@
 include ../source.mk
 include ../targets.mk
 
+# Hardcode the targets to allow only native compilers for now.
+configure_targets = configure-$(OPK_HOST_ARCH)
+build_targets = build-$(OPK_HOST_ARCH)
+buildnative_targets = buildnative-$(OPK_HOST_ARCH)
+buildcross_targets = buildcross-$(OPK_HOST_ARCH)
+install_targets = install-$(OPK_HOST_ARCH)
+installnative_targets = installnative-$(OPK_HOST_ARCH)
+installcross_targets = installcross-$(OPK_HOST_ARCH)
+
 base_version = $$(printf '%s\n' '$(OPK_SOURCE)' | sed 's/^gcc-//')
 
 target = $$(printf '%s' '$@' | sed 's/^[a-z]*-//')
@@ -84,6 +93,8 @@ $(build_targets): configure
 	# These default values are in header files in gcc/config.  They must be
 	# edited here rather than in a patch because any given GCC target
 	# configuration can be used by multiple ProteanOS targets.
+	# XXX: These commands run once per target, but they screw up the src/
+	# directory and probably make things break.
 	set -e; \
 	. "../targets.d/$(target).sh"; \
 	mv "src/gcc/config/$${gcc_config_file}" \
--
cgit v0.9.1