GLib 2.29.2 fails to cross-compile
Submitted by Maarten Bosmans
Link to original bug (#647862)
Description
Created attachment 186019 proposed patch
Error in configure: checking for qsort_r... configure: error: in `/usr/src/packages/BUILD/glib-2.29.2': configure: error: cannot run test program while cross compiling
The attached patch adds a check for the qsort_r function. This solves it for my case (win32 cross-compiling using mingw) because qsort_r is not available. In the case of cross-compiling with a host platform that has qsort_r available the test will still fail though. Probably the best thing would be to also add a check for cross-compilation and assume qsort_r just works (i.e. no arguments reversed).
Patch 186019, "proposed patch":
0001-Only-do-qsort_r-AC_RUN-check-if-it-is-found-by-AC_CH.patch