From 094b2f2aafd1335b25e63bff424188e68adfd96d Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 17 May 2007 15:31:02 +0000 Subject: [PATCH] Add cross-compilation patch from #1695 SVN-Revision: 7261 --- .../patches/001-fix_broken_unix_cross.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libs/freetype/patches/001-fix_broken_unix_cross.patch 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 0000000000..939ca610b8 --- /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]) -- 2.30.2