I am cross compiling pkg-config for arm-v5t_le.While configuring it is giving following error.I have removed that error by modifying configure script but it is giving error while making.
I am enclosing those errors below.
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for glib-1.2.8
Please help me.
Thanks in advance,
Satyanarayana K V P.
*** Bug 11465 has been marked as a duplicate of this bug. ***
This issue was also reported on the mailing list in December 2008:
It's an issue for me as well. I am on an Intel Mac and would like to cross-compile for a 64-bit PowerPC Mac; Intel Macs can run 32-bit PowerPC code via Rosetta, but cannot run 64-bit PowerPC code.
I believe all the cross-compiling issues in pkg-config had to do with the embedded glib. glib-1.2 was known to have some issues with cross-compiling. pkg-config now depends on glib-2 and will include a bundled glib-2 in the next version. This one can be built if some cache variables are set:
So, you can either obtain an appropriate glib to depend on or use the internal glib following the above documentation. I've added this info the README and done a little testing that this works in a cross-compile scenario. See commit cfaffdc. Please reopen if this is not the case.