[pjsip] siprtp binary size

Sam Crawford sam at samknows.com
Sat May 3 08:49:59 EDT 2008


Hello,

I'm a newbie to PJSIP I'm afriad, but the testing I've done suggest that
siprtp (one of the sample apps) will suit my purposes perfectly. I've
successfully packaged the application for FreeWRT (a WRT-based OS running
under MIPS with a 2.4 kernel).

However, the binary is nearly 600KB. Similarly, on my x86_64 machine here
the binary is around 500KB. Is there any way I might go about reducing this
size? I've searched the mailing list archives and the web in general, but
have found nothing on the subject.

The relevant compilation lines for MIPS are as follows:

mipsel-linux-gcc -c -DPJ_AUTOCONF=1 -Os -fno-ident -fwrapv -fhonour-copts
-I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib/include
-I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib-util/include
-I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjnath/include
-I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjmedia/include
-I/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjsip/include
-Os -fno-ident -fwrapv -fhonour-copts \
          -o output/samples-mipsel-unknown-linux-gnu/siprtp.o \
          ../src/samples/siprtp.c

mipsel-linux-gcc -o ../bin/samples/siprtp-mipsel-unknown-linux-gnu \
            output/samples-mipsel-unknown-linux-gnu/siprtp.o \

-L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib/lib
-L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjlib-util/lib
-L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjnath/lib
-L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjmedia/lib
-L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/pjsip/lib
-L/home/sam/linksys/adk/freewrt/build_mipsel/w-pjproject-0.8.0-1/pjproject-0.8.0/third_party/lib
-Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link
-Wl,/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
-L/home/sam/linksys/adk/freewrt/cross_mipsel/target/lib
-L/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
-lpjsua-mipsel-unknown-linux-gnu -lpjsip-ua-mipsel-unknown-linux-gnu
-lpjsip-simple-mipsel-unknown-linux-gnu -lpjsip-mipsel-unknown-linux-gnu
-lpjmedia-codec-mipsel-unknown-linux-gnu -lpjmedia-mipsel-unknown-linux-gnu
-lpjnath-mipsel-unknown-linux-gnu -lpjlib-util-mipsel-unknown-linux-gnu
-lresample-mipsel-unknown-linux-gnu -lmilenage-mipsel-unknown-linux-gnu
-lgsmcodec-mipsel-unknown-linux-gnu -lspeex-mipsel-unknown-linux-gnu
-lilbccodec-mipsel-unknown-linux-gnu -lpj-mipsel-unknown-linux-gnu -lm -lnsl
-lrt -lpthread  -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link
-Wl,/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib
-L/home/sam/linksys/adk/freewrt/cross_mipsel/target/lib
-L/home/sam/linksys/adk/freewrt/cross_mipsel/target/usr/lib


Any help or advice would be greatly appreciated.

Thanks,

Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080503/2073eb80/attachment.html>


More information about the pjsip mailing list