changeset 3005:c154d525c70e

use config.guess to set TARGET for native builds
author John W. Eaton <jwe@octave.org>
date Thu, 30 May 2013 13:17:57 -0400
parents b994e523cfac
children dabfd7db980c
files Makefile
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu May 30 13:12:04 2013 -0400
+++ b/Makefile	Thu May 30 13:17:57 2013 -0400
@@ -17,8 +17,12 @@
 #USE_SYSTEM_GCC := yes
 
 # Should match what config.guess prints for your system.
-TARGET := i686-pc-mingw32
-#TARGET := x86_64-unknown-linux-gnu
+# If cross compiling, you must set it manually.
+ifeq ($(MXE_NATIVE_BUILD),yes)
+  TARGET := `tools/config.guess`
+else
+  TARGET := i686-pc-mingw32
+endif
 
 # Enable shared or static libs, or perhaps both.  At least one 
 # package uses --with instead of --enable.  Probably it doesn't