Subject: Re: libtool question...
To: Nick Hudson <skrll@netbsd.org>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-pkg
Date: 03/22/2001 09:34:10
On Thu, 22 Mar 2001, Nick Hudson wrote:

: > netbsd*)
: > changequote(,)dnl
: >   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
: >     [lt_cv_deplibs_check_method='file_magic ^lib[^\.]\.so$']
: >   else
: >     [lt_cv_deplibs_check_method='file_magic ^lib[^\.]\.so\.[0-9]+\.[0-9]+$']
: >   fi
:
: Aren't these the wrong way round? The true case is a.out and false case
: is ELF...

Yah.  Told you it wasn't tested yet.  :)

: Actually after a bit of testing it seems that something like
:
: 	[lt_cv_deplibs_check_method='file_magic \/lib[^\/]+\.so\(\.[0-9]+\)*$']
:
: would seem to do the trick for both ELF and a.out.

However, this isn't correct for ELF, as it would give you a false match if
the .so symlink is missing (on ELF), or if there's zero, one, or three-plus
version number components (on a.out).

The ones I gave are very strict about the file extension, as they match
files the same way the linker does when searching for -l libraries.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --  http://www.wasabisystems.com/