Subject: Re: libtool question...
To: Todd Vierling <tv@wasabisystems.com>
From: Nick Hudson <skrll@netbsd.org>
List: tech-pkg
Date: 03/22/2001 15:18:38
Todd Vierling wrote:
>
> On Thu, 22 Mar 2001, Todd Vierling wrote:
>
> : : [lt_cv_deplibs_check_method='file_magic \/lib[^\/]+\.so\(\.[0-9]+\)*$']
>
> : 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.
>
Oh yeah, I got the links and real library the wrong way round. What was
I thinking!
> ...making the final result:
>
> changequote({, })
> if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
> {lt_cv_deplibs_check_method='file_magic /lib[^/\.]\.so\.[0-9]+\.[0-9]+$'}
> else
> {lt_cv_deplibs_check_method='file_magic /lib[^/\.]\.so$'}
> fi
> changequote([, ])
>
> I didn't escape the / characters, but you can if you want (it's an egrep, so
> it's not needed in the current case), but the presence of \., to disallow
> periods, in the first [] is very important. I also changed the [] around
> the statement -- because of changequote, these needed changing too(!).
OK. I'll have a play with this.
Nick
--
aka skrll@netbsd.org, skrll@excite.co.uk