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

Re: Where to add extra libraries for modules

On 21 Jul 2001, Fletch wrote:

>         The problem is that the mkmakemod.sh script has already spit
> out a rule for `zperl.$(DL_EXT)'.  I realize that I could stick the
> ldopts invocation in DLLDFLAGS and/or LDFLAGS in the configure script,
> but then that'd be including them for every module.
>         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)?

It would be trivial, but ...

on most systems perl lib is installed into own directory not in standard
libpath. That means that you have to link your program with some variant

LD_RUN_PATH=/usr/lib/perl/5.6.0/... $(LD) ... -L$... -lperl ...

Now, the problem is - I do now that it works when linking main program. I
do not know if it works when linking shared object.

Also, we have AIX and Cygwin. Cygwin may be easier because here libperl is
in PATH (I guess, nust check), but I suspect it won't work for AIX at all
(because we need list of symbols exported from libperl.so). Anybody knows
status of perl on AIX?

Note, that there is no prolem with static perl library.


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