Hi there,
You'll need to cross compile your libraries for Android. You can do this on linux by simply linking to the cross compiler that comes with NDK.
I managed to do this for ffmpeg (I've attached my shell script) by simply using the bionic compiler that comes with the NDK.
Obviously this won't work for JNI but only if you want native binaries. In my example I was doing static compilation but you may want to do shared compilation.
You'll need to change some of the flags and point it to your compiler. If you want shared libraries enabled you'll need to remove all the dynamic stuff. But I guess this might provide an o.k. starting point for you.
I'm very interested in anything SIP based for Android so would love to hear of your results (presuming it's open source?).
Simple Shell Script
------------------------------------------------------------------
#!/bin/bash
export ARM_ROOT=/stuff/android-ndk-r4
export ARM_INC=$ARM_ROOT/build/platforms/android-5/arch-arm/usr/include/
export ARM_LIB=$ARM_ROOT/build/platforms/android-5/arch-arm/usr/lib/
export ARM_TOOL=$ARM_ROOT/build/prebuilt/linux-x86/arm-eabi-4.4.0
export ARM_LIBO=$ARM_TOOL/lib/gcc/arm-eabi/4.4.0
export PATH=$ARM_TOOL/bin:$PATH
export ARM_PRE=arm-eabi
./configure --disable-gpac --prefix=/stuff/ffmpeg-android/build/ffmpeg \
--extra-cflags=" -I$ARM_INC -fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -MMD -MP " --extra-ldflags="-nostdlib -Bdynamic -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,nocopyreloc -Wl,-soname,/system/lib/libz.so -Wl,-rpath-link=$ARM_LIB,-dynamic-linker=/system/bin/linker -L$ARM_LIB -nostdlib $ARM_LIB/crtbegin_dynamic.o $ARM_LIB/crtend_android.o -lc -lm -ldl -lgcc" \
--cross-prefix=${ARM_PRE}- --disable-asm --host=arm-linux --disable-shared
--------------------------------------------------------
End Simple Shell Script