this article helped a lot
#!/bin/csh
set IPP_DIR="/opt/intel/ipp/6.1.0.017/em64t"
set IPP_LIBS="-lippdcem64t -lippsem64t -lippcoreem64t"
gcc -g -I{$IPP_DIR}/include -c -fPIC adler32.c
gcc -g -I{$IPP_DIR}/include -c -fPIC crc32.c
g++ -g -I{$IPP_DIR}/include -c -fPIC ipp_static.cpp
gcc -g -I{$IPP_DIR}/include -c -fPIC zutil.c
gcc -g -I{$IPP_DIR}/include -c -fPIC trees.c
gcc -g -I{$IPP_DIR}/include -c -fPIC compress.c
gcc -g -I{$IPP_DIR}/include -c -fPIC uncompr.c
gcc -g -I{$IPP_DIR}/include -c -fPIC inflate.c
gcc -g -I{$IPP_DIR}/include -c -fPIC inftrees.c
gcc -g -I{$IPP_DIR}/include -c -fPIC deflate.c
# make the shared library
ld -shared -soname libintel_libz.so -o libintel_libz.so -lc deflate.o adler32.o crc32.o trees.o compress.o ipp_static.o zutil.o uncompr.o inflate.o inftrees.o
gcc -c -g matt.c -o matt.o
g++ -L{$IPP_DIR}/sharedlib/ -L. ${IPP_LIBS} matt.o -lintel_libz -o ipp_libz
--
MattWalsh - 06 Mar 2009
Topic revision: r1 - 06 Mar 2009 - 21:59:33 -
MattWalsh