Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Breaking apart link dependencies
- X-seq: zsh-workers 25274
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Breaking apart link dependencies
- Date: Thu, 10 Jul 2008 20:00:49 +0100
- In-reply-to: <20080709034817.GA27341@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080709034817.GA27341@xxxxxxxxxxxxxxxxxxxx>
On Tue, 8 Jul 2008 20:48:17 -0700
Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> This is the first step to see if there's any linker breakage on other
> platforms. If it works decently, perhaps a later step is to move the
> ncurses dependency to zle?
Linking pcre statically now fails. I tried this with --enable-pcre;
however, presumably if this code works turning on --enable-pcre by
default isn't a problem any more since it doesn't create dependencies in
the main shell, unless the test for chained libraries fails.
Presumably in this case the library needs to be thrown in at the point
everything is linked, either in stamp-modobjs or an additional file with
module dependencies.
> Does zsh still support any systems that don't support chained libraries,
> as mentioned by Andrey Borzenkov in post 23347? Does zsh tend to just
> statically compile on those platforms? If not, is there a deterministic
> configure.ac test available, or should we just list the platforms as
> exceptions to resetting LIBS and CPPFLAGS by the XXX comment in the
> patch?
An autoconf test ought not to be too hard, I'd have thought. Use a
standard library that's not part of the C library, create a shared
library using it, load and invoke the shared library. In fact, creating
a chained library locally, given you're creating one anyway, isn't
difficult and leaves nothing to chance.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author