[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Autogen-devel] autogen configuration on Mac OS X

From: Bruce Korb
Subject: Re: [Autogen-devel] autogen configuration on Mac OS X
Date: Mon, 01 Apr 2002 18:38:17 -0800

David Bacher wrote:
> Hi Bruce,
> I've discovered a couple of things while porting autogen to Mac OS X.
> I investigated the libtool problems that we discussed in a little
> more detail using your debugging tips and discovered that the library
> was included twice because it was included in both the $libobjs and
> $deplibs variables when the link command was evaluated.
> Then, by accident, I found the solution in a posting to the fink
> development mailing list (fink is a tool for porting/installing Unix
> programs to Mac OS X). I can't claim that I understand it, but the
> following patch to fixes the problem:
> --- autogen-5.3.3/config/      Thu Feb 21 10:19:44 2002
> +++ autogen-5.3.3-patched/config/      Sun Mar 31 12:41:14 2002
> @@ -2894,7 +2894,12 @@
>          if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
>            eval cmds=\"$archive_expsym_cmds\"
>          else
> +         save_deplibs="$deplibs"
> +         for conv in $convenience; do
> +           deplibs="${deplibs%$conv*} ${deplibs#*$conv}"
> +         done
>            eval cmds=\"$archive_cmds\"
> +         deplibs="$save_deplibs"
>          fi
>          save_ifs="$IFS"; IFS='~'
>          for cmd in $cmds; do
> Apparently, the same problem with convenience libraries has been
> discovered by others. I don't know what the resolution should be with
> the libtool folks.

It is known there.  This solution removes duplicate entries,
but causes problems for other platforms.  It's very easy to fix
in my "binary version" of libtool, but when you constrain yourself
to basic Bourne shell with no function capability, you make solutions
much more difficult for yourself.  In any event, I'm forwarding
to the libtool list to make it clear another derrier got bitten.....

David: Thanks for the man page patch.  Applied.


Bruce Korb <first initial + last name at gnu dot org>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]