Subject: Re: libtool question...
To: Todd Vierling <tv@wasabisystems.com>
From: Nick Hudson <skrll@netbsd.org>
List: tech-pkg
Date: 03/21/2001 23:29:26
Todd Vierling wrote:
>
> On Wed, 21 Mar 2001, Todd Vierling wrote:
>
> : Could we possibly simplify the deplibs_check_method to something more like
> : the following (in libtool.m4/configure)? We shouldn't be using file(1), if
> : possible, since its output could easily change between releases and
> : architectures.
>
> A correction; the original was missing closing brackets and wasn't very m4
> friendly. This one does a better job at being kind to m4.
>
> Note that this is not actually tested yet, as I haven't the time to do that
> today, but if you don't attack it shortly, I'll get to it soon after.
>
> ===
>
> 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
> changequote([, ])dnl
> lt_cv_file_magic_cmd='echo'
> lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
> ;;
>
This seems like a very good idea. Shame I didn't think of it ;-) I'll
race you to see who does it first...
Nick
--
aka skrll@netbsd.org, skrll@excite.co.uk