Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch for to guess native MACHINE_ARCH

hi folks.

anyone ever tried to run on a system like evbarm
and it defaulted to "earm", even on arm64 systems?

this simple patch makes guess MACHINE_ARCH with
MACHINE, instead of then finding a default on the list.

this only changes the behaviour when you run
without any -m or -a option and it guesses from the local
system.  with this patch, it will default to build for
the native host.



RCS file: /cvsroot/src/,v
retrieving revision 1.331
diff -p -u -r1.331
---	25 Apr 2019 05:12:49 -0000	1.331
+++	30 Apr 2019 09:13:52 -0000
@@ -1416,6 +1416,7 @@ parseoptions()
 		[ "${uname_s}" = "NetBSD" ] ||
 		    bomb "MACHINE must be set, or -m must be used, for cross builds."
+		MACHINE_ARCH=${uname_p}
 	if $opt_m && ! $opt_a; then
 		# Settings implied by the command line -m option

Home | Main Index | Thread Index | Old Index