From: florian Date: Thu, 17 May 2007 15:31:02 +0000 (+0000) Subject: Add cross-compilation patch from #1695 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=b4111c21586497941eb487c0dea7b5b37079fd9d;p=packages.git Add cross-compilation patch from #1695 git-svn-id: svn://svn.openwrt.org/openwrt/packages@7261 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 index 000000000..939ca610b --- /dev/null +++ b/libs/freetype/patches/001-fix_broken_unix_cross.patch @@ -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])