libtool-patches
[Top][All Lists]
Advanced

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

Re: 12-gary-solaris-no-undefined.patch [Was Re: 5-gary-solaris-no-undefi


From: Gary V. Vaughan
Subject: Re: 12-gary-solaris-no-undefined.patch [Was Re: 5-gary-solaris-no-undefined.patch]
Date: Mon, 10 Sep 2001 23:21:39 +0100
User-agent: Mutt/1.3.21i

On Sun, Sep 09, 2001 at 07:35:25PM -0500, address@hidden wrote:

> And, if they do what you outline in the last sentence, your case
> statement will still bite them because you don't check if they are
> using GNU binutils. You only check for the version of GCC.

You are missing some context:

  if test "$with_gnu_ld" = yes; then
    ...
  else
    # PORTME fillin a description of your system's linker (not GNU ld)
    ...

> >    solaris*)
> > -    no_undefined_flag=' -z text'
> > +    # gcc --version < 3.0 without binutils cannot create self contained
> > +    # shared libraries reliably, requiring libgcc.a to resolve some of
> > +    # the object symbols generated in some cases.  Libraries that use
> > +    # assert need libgcc.a to resolve __eprintf, for example.  Linking
> > +    # a copy of libgcc.a into every shared library to guarantee resolving
> > +    # such symbols causes other problems:  According to Tim Van Holder
> > +    # <address@hidden>, C++ libraries end up with a separate
> > +    # exception stack for one thing.
> > +    if test "$GCC" = yes; then
> > +      case `$CC --version 2>/dev/null` in
> > +      [12].*)
> > +   no_undefined_flag=unsupported
> > +   cat <<EOF 1>&2
> > +
> > +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
> > +*** create self contained shared libraries on Solaris systems.  Therefore,
> > +*** libtool is disabling the -no-undefined support.  We urge you to upgrade
> > +*** to a newer version of GCC.  Another option is to rebuild your current
> > +*** GCC to use the GNU linker from GNU binutils 2.9.1 or newer.

    ...
  fi
  
Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

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