Ng Pheng Siong wrote:
> 
> On Jan 5, Niels Poppe wrote:
> > Here is a small patch to Makefile.org to build
> > shared libraries, at least for linux/alpha (RedHat)
> > and linux/mips (a Cobalt Qube, also derived from RedHat):
> 
> What's wrong with shlib/linux.sh? (I haven't tried it
> myself, not having (re)installed Linux.)
> 
> Anyways, I'm trying to do the same on [Free|Open]BSD: Somehow,
> multiple definitions of BN_mod and BN_sub are flagged when I'm
> doing the shlib build, but not during the regular build.
> Guarding the duplicate code with #ifdefs fixes these.
> 

That's the point. This just drives gcc + gnu ld, reusing the main
Makefile and configuration. Since shlib/linux.sh uses lots of
hard-coded defines it even breaks on non-intel linux ports.

You'll probably have to tweak linker options here and there. Please
try and see :)

S/MIME Cryptographic Signature

Reply via email to