Summary: | media-libs/freetype-2.3.4-r2 crosscompile fails to detect the correct CC_BUILD | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Eddy Petrișor <eddy.petrisor> |
Component: | New packages | Assignee: | Gentoo Fonts Team <fonts> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | eddy.petrisor |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | freetype-2.3.5-crossbuild.patch |
Description
Eddy Petrișor
2007-07-17 17:53:57 UTC
Forgot to say, the package builds fine when exporting CC_BUILD hmm, i don't have much time to look into this at the moment, but does something like this help? 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.ac 2007-07-02 15:41:39.000000000 -0600 +++ freetype-2.3.5/builds/unix/configure.ac 2007-07-17 22:48:08.000000000 -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]) Created attachment 125227 [details, diff]
freetype-2.3.5-crossbuild.patch
here's the full patch.
with this patch it compiles correctly. https://bugs.gentoo.org/attachment.cgi?id=125227 Applied to freetype-2.3.4-r2 and freetype-2.3.5. I've sent this patch upstream as well. Thanks for reporting. |