[patch RFA libffi SH] Fix configure error for sh4-unknown-linux-gnu

Kaz Kojima kkojima@rr.iij4u.or.jp
Tue Jan 13 06:14:00 GMT 2015


Hi,

The attached patch is to fix libffi build failure for
sh4-unknown-linux-gnu.  Without it, configure fails with:

configure: error: "libffi has not been ported to sh4-unknown-linux-gnu."

on that target.  OK for trunk?

Regards,
	kaz
--
2015-01-13  Kaz Kojima  <kkojima@gcc.gnu.org>

	* configure.host: Remove extra brackets for sh.

diff --git a/configure.host b/configure.host
index 90de638..4952345 100644
--- a/configure.host
+++ b/configure.host
@@ -194,7 +194,7 @@ case "${host}" in
 	SOURCES="ffi.c sysv.S"
 	;;
 
-  sh-*-* | sh[[34]]*-*-*)
+  sh-*-* | sh[34]*-*-*)
 	TARGET=SH; TARGETDIR=sh
 	SOURCES="ffi.c sysv.S"
 	;;



More information about the Gcc-patches mailing list