Add cross-compilation patch from #1695
authorFlorian Fainelli <florian@openwrt.org>
Thu, 17 May 2007 15:31:02 +0000 (15:31 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 17 May 2007 15:31:02 +0000 (15:31 +0000)
SVN-Revision: 7261

libs/freetype/patches/001-fix_broken_unix_cross.patch [new file with mode: 0644]

diff --git a/libs/freetype/patches/001-fix_broken_unix_cross.patch b/libs/freetype/patches/001-fix_broken_unix_cross.patch
new file mode 100644 (file)
index 0000000..939ca61
--- /dev/null
@@ -0,0 +1,36 @@
+diff -ruN freetype-2.3.1-original/builds/unix/configure freetype-2.3.1/builds/unix/configure
+--- freetype-2.3.1-original/builds/unix/configure      2007-05-15 18:51:19.000000000 +0200
++++ freetype-2.3.1/builds/unix/configure       2007-05-15 18:53:02.000000000 +0200
+@@ -3270,7 +3270,7 @@
+   test -z "$as_dir" && as_dir=.
+   for ac_exec_ext in '' $ac_executable_extensions; do
+   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+-    ac_cv_prog_CC_BUILD="${build-gcc}"
++    ac_cv_prog_CC_BUILD="${build}-gcc"
+     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+     break 2
+   fi
+diff -ruN freetype-2.3.1-original/builds/unix/configure.ac freetype-2.3.1/builds/unix/configure.ac
+--- freetype-2.3.1-original/builds/unix/configure.ac   2007-05-15 18:51:19.000000000 +0200
++++ freetype-2.3.1/builds/unix/configure.ac    2007-05-15 18:53:25.000000000 +0200
+@@ -40,7 +40,7 @@
+ # checks for native programs to generate building tool
+ if test ${cross_compiling} = yes; then
+-  AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build-gcc})
++  AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc)
+   test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc)
+   test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc)
+   test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler])
+diff -ruN freetype-2.3.1-original/builds/unix/configure.raw freetype-2.3.1/builds/unix/configure.raw
+--- freetype-2.3.1-original/builds/unix/configure.raw  2007-05-15 18:51:19.000000000 +0200
++++ freetype-2.3.1/builds/unix/configure.raw   2007-05-15 18:54:07.000000000 +0200
+@@ -40,7 +40,7 @@
+ # checks for native programs to generate building tool
+ if test ${cross_compiling} = yes; then
+-  AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build-gcc})
++  AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc)
+   test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc)
+   test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc)
+   test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler])