Hi Stuart,

On Thu, 2011-07-07 at 08:55 +0100, Stuart Hughes wrote:
> If anyone has Ubuntu 11.04 installed on a 64bit machine, can you apply 
> Fritz's patch and see also if you can add the necessary changes to make 
> it also work on your 64 bit machine.

I don't have time to apply Fritz's patch for i386, but the attached
patch worked for me on an 64bit Ubuntu 11.04 host.

I hope this helps to craft a general solution! I was thinking to
investigate a little bit on a more general approach, before submitting
this patch to the list. This should involve finding the installation
directory for a library on a multi-lib environment, but I had no time to
do it yet...

Regards,
Andrea
diff -u -r1.3 Ltibutils.pm
--- bin/Ltibutils.pm	8 Mar 2010 15:45:15 -0000	1.3
+++ bin/Ltibutils.pm	7 Jul 2011 09:30:07 -0000
@@ -559,7 +559,7 @@
     binutils         => 'ar --version 2>/dev/null',
     'gcc-c++'        => 'g++ --version 2>/dev/null',
     glibc            => 'ldd --version 2>/dev/null',
-    'glibc-devel'    => sub { -f '/usr/lib/libm.so' || -f '/usr/lib64/libz.so'},
+    'glibc-devel'    => sub { -f '/usr/lib/libm.so' || -f '/usr/lib/x86_64-linux-gnu/libm.so' || -f '/usr/lib64/libz.so'},
     'glibc-headers'  => sub { -f '/usr/include/stdio.h' },
     'libstdc++' => sub {
             return system_nb(<<TXT) == 0;
@@ -581,7 +581,9 @@
                     },
     zlib         => sub { my @f = (glob('/usr/lib/libz.so*'),
                                    glob('/lib/libz.so*'),
-                                   glob('/lib64/libz.so*')  ); @f > 1 ? 1 : 0 },
+                                   glob('/lib64/libz.so*'),
+                                   glob('/usr/lib/x86_64-linux-gnu/libz.so*'),
+                                   glob('/lib/x86_64-linux-gnu/libz.so*')); @f > 1 ? 1 : 0 },
     'zlib-devel' => sub { -f '/usr/include/zlib.h' },
 };
 
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to