From: Fletch <fletch@phydeaux.org>
To: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
Cc: <zsh-workers@sunsite.dk>
Subject: Re: Where to add extra libraries for modules
Date: 22 Jul 2001 11:43:43 -0400 [thread overview]
Message-ID: <m2snfpx93k.fsf@freebie.phydeaux.org> (raw)
In-Reply-To: Andrej Borsenkow's message of "Sun, 22 Jul 2001 09:08:25 +0400 (MSD)"
>>>>> "Andrej" == Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru> writes:
[...]
Andrej> It would be trivial, but ...
Andrej> on most systems perl lib is installed into own directory
Andrej> not in standard libpath. That means that you have to link
Andrej> your program with some variant of
Andrej> LD_RUN_PATH=/usr/lib/perl/5.6.0/... $(LD)
Andrej> ... -L$... -lperl ...
Right, that's what the `perl -MExtUtils::Embed -e ldopts`
does. For example, on FreeBSD it produces:
-Wl,-E -L/usr/local/lib/usr/lib/perl5/5.6.1/i386-freebsd/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/i386-freebsd/CORE -lperl -lm -lc -lcrypt
-liconv -lutil
As long as perl's been installed correctly you just let the
ExtUtils::Embed module give what's apropriate for the platform\
Andrej> Now, the problem is - I do now that it works when linking
Andrej> main program. I do not know if it works when linking
Andrej> shared object.
It seems to work on FreeBSD and (I believe) Linux. Then again
its been linking against a static libperl.a rather than a shared
version.
[...]
Andrej> Note, that there is no prolem with static perl library.
I'm fairly sure that perl defaults to building a static
libperl.a unless you tell it otherwise. And if it does, I'm pretty
sure that it adds the apropriate -R... flags to set the ld.so search
path.
--
Fletch | "If you find my answers frightening, __`'/|
fletch@phydeaux.org | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
| U
next prev parent reply other threads:[~2001-07-22 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-22 1:50 Fletch
2001-07-22 5:08 ` Andrej Borsenkow
2001-07-22 15:43 ` Fletch [this message]
2001-07-23 4:32 ` Andrej Borsenkow
2001-07-23 16:31 ` Bart Schaefer
2001-07-30 15:25 ` Clint Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2snfpx93k.fsf@freebie.phydeaux.org \
--to=fletch@phydeaux.org \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).