This is attempt to resolve problems with cross-compilation
without rewriting CROSSCOMPILE macro from the 6.9.0 imake build
system into configure.ac.

So we just picked the easy solution by getting a glibc version
that's relatively old get_libc_version(). This function is itself
behind #ifdef linux, so it's not really a portability problem,
but it's admittedly not a good solution,

Patch by Adam Jackson <[email protected]>

Signed-off-by: Matěj Cepl <[email protected]>
---
 imake.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/imake.c b/imake.c
index 003bc23..f0cc8ca 100644
--- a/imake.c
+++ b/imake.c
@@ -997,8 +997,12 @@ get_libc_version(FILE *inFile)
 
   len = pclose (fp);
   remove (aout);
-  if (len)
-    abort ();
+  if (len) {
+      /* handwave furiously */
+      printf("#define DefaultLinuxCLibMajorVersion 6\n");
+      printf("#define DefaultLinuxCLibMinorVersion 12\n");
+      printf("#define DefaultLinuxCLibTeenyVersion 0\n");
+  }
 }
 #endif
 
-- 
1.7.6

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to