On Tue, Jul 29, 2003 at 06:29:12PM +0800, Autrijus Tang wrote:
> 
> You probably want "pp -l" / "pp --link" for shared libraries needed
> by XS modules -- See "perldoc pp" for details.  As for perl itself --
> mm, that seems like something we can do at PAR's compile time.
> 

        I try this - but as I understand - this feature put libs into 
 executable to use whith internal perl - but executable is still
 dinamically linked. I try this:

/usr/bin/pp -S  -I ./ --link=/lib/libnsl.so.1 --link=/lib/libdl.so.2 
--link=/lib/libm.so.6 --link=/lib/libc.so.6 --link=/lib/libcrypt.so.1 
--link=/lib/ld-linux.so.2 -o smtplogparser smtplogparser.pl

 and in result get:

ldd smtplogparser
        libnsl.so.1 => /lib/libnsl.so.1 (0x40025000)
        libdl.so.2 => /lib/libdl.so.2 (0x4003b000)
        libm.so.6 => /lib/libm.so.6 (0x4003e000)
        libc.so.6 => /lib/libc.so.6 (0x40061000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40194000)
        libutil.so.1 => /lib/libutil.so.1 (0x401c1000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

        the same as before, but different size:

before: /usr/bin/pp -S  -I ./  -o smtplogparser smtplogparser.pl
before: -rwxr-xr-x    1 tvl      www       1994551 Jul 29 13:36 smtplogparser*

now:    /usr/bin/pp -S  -I ./ --link=/lib/libnsl.so.1 --link=/lib/libdl.so.2 
--link=/lib/libm.so.6 --link=/lib/libc.so.6 --link=/lib/libcrypt.so.1 
--link=/lib/ld-linux.so.2 --link=/lib/libutil.so.1 -o smtplogparser smtplogparser.pl
now:    -rwxr-xr-x    1 tvl      www       2994340 Jul 29 13:38 smtplogparser*

        but still dinamically linked ...


-- 

Best regards, 

Vladimir Yu. Tereshchenko               [Registered Linux UIN #198978]
TNU, Centre of Computer Technology      ICQ UIN: 73046562

Reply via email to