Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Where to add extra libraries for modules
- X-seq: zsh-workers 15460
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Where to add extra libraries for modules
- Date: Mon, 23 Jul 2001 16:31:43 +0000
- In-reply-to: <m2y9phybno.fsf@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <m2y9phybno.fsf@xxxxxxxxxxxxxxxxxxxx>
On Jul 21, 9:50pm, Fletch wrote:
}
} I've all but got my perl-in-zsh module working with 4.0.2
} again, but I've got an issue with where I should be adding in the
} commands to link against the perl libraries.
}
} Would it make sense (possibly) to add an `extralibs' paramter
} in the .mdd and then have mkmakemod.sh include that in the rule for
} module.$(DL_EXT)?
We had a short discussion about this back when termcap/terminfo became
modules. The above would work for Perl, I think, but it won't work for
new modules in general -- the difficult bit comes when some sort of
configure-time testing is needed in order to detect the availability or
local install location of such extra libraries. At this point there's
nowhere other than zsh's configure script where such tests can be added.
Another question is whether `extralibs' is enough. Do we need separate
entries for dynamic v. static? (And is `extralibs' the best name?)
One possibility would be to have `extralibs' or whatever, be an eval'd
value like `link' is. It'd be evaluated at configure time and then the
result would be copied into config.modules. We'd have to fix parsing
of that file to permit multiple libraries -- currently in every name=val
pair except the last on the line (`functions'), val has to be exactly
one word.
Then there's the additional question, which someone raised earlier, of
being able to compile zsh modules independently of compiling the shell
itself. At present I think this would require installing all the .epro
files in an include directory (/usr/local/include/zsh/$(VERSION)/ ?) and
also makepro.awk, mkmakemod.sh, and the generated Makemod (or a subset
of it) somewhere. What other files am I forgetting?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author