[PATCH] Hackish way how to avoid problems with cross-compilation.

Matěj Cepl mcepl at redhat.com
Tue Aug 9 12:40:04 PDT 2011


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 <ajax at nwnk.net>

Signed-off-by: Matěj Cepl <mcepl at redhat.com>
---
 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



More information about the xorg-devel mailing list