[ft-devel] cross-compile configure error (patch)

2007-08-10 Thread Ryan Hill
When cross-compiling freetype, when the build compiler executable ends
in -gcc and CC_BUILD is not set in the environment, configure will
fail to find the native compiler and die.  The attached patch sets
CC_BUILD to ${build}-gcc rather than ${build-gcc}.

I've seen a similar patch in some embedded-centric distros, so this may
have been reported before.  Is this the correct fix?


-- 
dirtyepicyou'd be tossed up or wash up, the narrator relates
 gentoo org  in a spartan antarctican walk for many days
  9B81 6C9F E791 83BB 3AB3  5B2D E625 A073 8379 37E8 (0x837937E8)
diff -Naur freetype-2.3.5-orig/builds/unix/configure.ac 
freetype-2.3.5/builds/unix/configure.ac
--- freetype-2.3.5-orig/builds/unix/configure.ac2007-07-02 
15:41:39.0 -0600
+++ freetype-2.3.5/builds/unix/configure.ac 2007-07-17 22:54:26.0 -0600
@@ -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])
___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


Re: [ft-devel] cross-compile configure error (patch)

2007-08-10 Thread mpsuzuki
Dear Sir,

Great Thank you for checking the cross compiling feature of
freetype2, I'm the author of the part you fixed.

On Fri, 10 Aug 2007 18:38:21 -0600
Ryan Hill [EMAIL PROTECTED] wrote:

When cross-compiling freetype, when the build compiler executable ends
in -gcc and CC_BUILD is not set in the environment, configure will
fail to find the native compiler and die.  The attached patch sets
CC_BUILD to ${build}-gcc rather than ${build-gcc}.

Sorry, ${build-gcc} is completely my mistake, it should
be ${build}-gcc. I will commit your fix within 24 hours,
please wait.

I've seen a similar patch in some embedded-centric distros, so this may
have been reported before.  Is this the correct fix?

Your fix is correct, but I think yet I don't receive the
bug report about this (if somebody reported and I overlooked
it, I'm very sorry). I was thinking that cross building
feature of freetype-2.2.x and later is not used popularly,
because there are too many legacy programs using freetype
internal headers which cannot build with freetype-2.2.x
and later don't install.

Regards,
mpsuzuki


___
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel