Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Library linkage portability?

I've been playing around with embedding ruby into zsh, for no particular
reason beyond my own education.  In so doing, I found "issues" with
headers such as "regex.h" which are also in the ruby directory which has

I ended up giving mdd files the ability to state per-module cflags and
linkage flags.  I then decided to get rid of the linkage of zsh against
pcre by resetting LIBS and CPPFLAGS in configure.ac after the test for
the pcre functions and just having pcre.mdd include:

  modincflags="`pcre-config --cflags`"
  modlibflags="`pcre-config --libs`"

Now I can run ldd against zsh and not see libpcre, but still have all
the PCRE functionality once I zmodload zsh/pcre.  I suspect that this
gets rid of the objections to building against pcre for systems where
zsh is on the root partition.

However, I also suspect that this is not portable to older a.out systems
and my memory's suggesting something about all library dependencies
having to be on the main executable, not being resolvable as libraries
are loaded.

Can someone please educate me as to the issues, or have I summed it up?
What about the stranger platforms, AIX etc?


Messages sorted by: Reverse Date, Date, Thread, Author