With the lastest 8.0 IPP packaged with Composer XE 2013 SP1 (initial release and Update 1), the lib*_l.a versions of the libraries are missing. Was this a mistake?
How does one link against the static libraries? Linking against the non "*_l.a" versions (like "libippcore.a") links, but only as a stub to the *.dylib. At runtime we fail to find the *.dylib and fail to launch.
In IPP 8.0 package structure was changed, please see ReleaseNotes.html:
What's New in Intel® IPP 8.0
So in IPP 8.0 you have libippi.a, libipps.a, libippcore.a, etc
Please note that multi-threaded libraries are in "threaded" subfolder with the same names. It should be easy to switch project to use single-threaded or multi-threaded version of libraries.
Could someone address Ron's second question?
How do you link to the static libs such that the code is embedded in the custom library rather than dispatched? (in OS X that is)
I asked around and got an answer.
OK, so the _l.a files are gone. Here's how to statically link now using the non-_l.a files:
Use the .a files BUT there's a catch: if you link like this:
gcc -o mytest mytest.c -lippi -lipps -lippcore
on OS X 10.9 the linker will link libippi libipps libippcore against the DYNAMIC libraries IF it finds them (which it will). I haven't tried it, but I would HOPE that if you throw in -static that the linker would do the right thing and pull in the static .a files. Anther way to get around this linker behaviour we have to link EXPLICITLY with the .a files thusly:
gcc -o mytest mytest.c $IPPROOT/lib/libippi.a $IPPROOT/lib/libipps.a $IPPROOT/lib/libippcore.a
This overrides the linker's default behaviour wherein when it sees a simple -lippi to attempt to first link against a dynlib. In any case, we have a way to link statically.
Linking the static libraries with their full path was the solution. The static keyword applies to all libraries (including ex. the stdc++ lib) which may be undesired.
You can also use -Wl to pass options to the linker
$gcc -o mytest mytest.c -Wl,-Bstatic -L$IPPROOT/lib/intel64 -lippi -lipps -lippcore -L/opt/intel/composerxe/lib/intel64 -limf -lsvml -lirc -Wl,-Bdynamic
-Wl,-Bstatic tells it to link the following libraries statically
-Wl,-Bdynamic tells it to link any other system libraries, like -lm, dynamically