zsh-workers
 help / color / mirror / code / Atom feed
* Library linkage portability?
@ 2007-04-29 12:34 Phil Pennock
  2007-04-29 15:44 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Pennock @ 2007-04-29 12:34 UTC (permalink / raw)
  To: zsh-workers

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
ruby.h.

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?

Thanks,
-Phil


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-29 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-29 12:34 Library linkage portability? Phil Pennock
2007-04-29 15:44 ` Bart Schaefer
2007-04-29 16:09   ` Andrey Borzenkov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).