Patrick LeBoutillier <[EMAIL PROTECTED]> writes:

> This basically tells the linker that DynaLoader.a should be included
> in PerlInterpreter.so. I think or else the
> Linux linker assumes that DynaLoader.a will already be loaded and does
> not swallow it. On Windows
> however, swallowing seems to be the default, that's why those flags
> are set to "".
>
> BTW: I got this stuff from someone else (Doug MacEachern) and I'm no
> C compiler/linker expert, but that's what I make of it.

Not that I'm a great compiler/linker person, but I've need to learn a
bit while maintain a Perl module built on a C++ library.

The --whole-linker flag tells the compiler that *all* symbols in a
library should be compiled into the shared library, and not just the
ones that the compiler sees are need at compile time.

This is especially useful for a perl module that is built on a C/C++
library. 

Hope this is a useful explanation.
jas.

Reply via email to