diff -uN /tmp/patches/cris.diff fribidi-0.10.4/patches/cris.diff
--- /tmp/patches/cris.diff	1970-01-01 02:00:00.000000000 +0200
+++ fribidi-0.10.4/patches/cris.diff	2005-09-08 08:58:13.547941768 +0300
@@ -0,0 +1,12 @@
+--- /tmp/config.guess	2005-09-08 08:48:29.332755976 +0300
++++ fribidi-0.10.4/config.guess	2005-09-08 08:57:55.090747688 +0300
+@@ -257,6 +257,9 @@
+     hkmips:OpenBSD:*:*)
+ 	echo mips-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
++    cris:Linux:*:*)
++        echo cris-axis-linux-gnu
++        exit 0 ;;                                
+     pmax:OpenBSD:*:*)
+ 	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
--- /tmp/Makefile	2005-09-08 09:03:24.070735128 +0300
+++ fribidi-0.10.4/Makefile	2005-09-08 09:03:05.056625712 +0300
@@ -24,7 +24,7 @@
 #	cd $(TARDIR) && autoconf
 
 	cd build/fribidi && ../../$(TARDIR)/configure  --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
-	cd build/fribidi && make $(MAKE_DEFINES)
+	cd build/fribidi && make $(MAKE_DEFINES) CFLAGS=-Os
 
 	touch $@
 

