[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bogus handing of Linux shared libraries
From: |
Philip Blundell |
Subject: |
Re: bogus handing of Linux shared libraries |
Date: |
Mon, 28 May 2001 23:01:46 +0100 |
>Great. Will you please post a patch to address@hidden that
>tests the glibc version in the native arm case, and assumes it's new
>enough in the cross-build case?
I think something like this will do the trick. I'll send it to
libtool-patches once I've tested it, but you might like to check that the
general idea is what you were expecting.
p.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.166
diff -u -p -u -r1.166 libtool.m4
--- libtool.m4 2001/04/24 23:40:42 1.166
+++ libtool.m4 2001/05/28 22:00:36
@@ -3207,11 +3207,21 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
- alpha* | i*86 | powerpc* | sparc* | ia64* )
- lt_cv_deplibs_check_method=pass_all ;;
+ arm*)
+ if test "$cross_compiling" = yes; then
+ lt_cv_deplibs_check_method=pass_all
+ else
+ if ls -l /lib/ld-linux.so.2 | grep -q "ld-2.[01]"; then
+ # glibc up to 2.1.1 does not perform some relocations on ARM
+ [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB
(shared object|dynamic lib )']
+ else
+ # this is glibc 2.2 or later
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ fi
+ ;;
*)
- # glibc up to 2.1.1 does not perform some relocations on ARM
- [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared
object|dynamic lib )' ;;]
+ lt_cv_deplibs_check_method=pass_all ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
pgpfT3u9W7QjG.pgp
Description: PGP signature
- bogus handing of Linux shared libraries, Philip Blundell, 2001/05/27
- Re: bogus handing of Linux shared libraries, Alexandre Oliva, 2001/05/27
- Re: bogus handing of Linux shared libraries, Philip Blundell, 2001/05/27
- Re: bogus handing of Linux shared libraries, Alexandre Oliva, 2001/05/27
- Re: bogus handing of Linux shared libraries, Philip Blundell, 2001/05/28
- Re: bogus handing of Linux shared libraries, Alexandre Oliva, 2001/05/28
- Re: bogus handing of Linux shared libraries,
Philip Blundell <=
- Re: bogus handing of Linux shared libraries, Alexandre Oliva, 2001/05/28
- Re: bogus handing of Linux shared libraries, Philip Blundell, 2001/05/28
- Re: bogus handing of Linux shared libraries, Alexandre Oliva, 2001/05/28
- Re: bogus handing of Linux shared libraries, Gary V . Vaughan, 2001/05/30
- Re: bogus handing of Linux shared libraries, Alexandre Oliva, 2001/05/30