[Android] danarama:
Well back to the original gps module and android.mk with LOCAL_MODULE_TAGS =:Optional, I still get errors which are similar:

Install: out/target/product/bravo/system/lib/libaudio.so
Install: out/target/product/bravo/system/lib/libaudiopolicy.so
Install: out/target/product/bravo/system/lib/libcameraservice.so
target SharedLib: libFFTEm (out/target/product/bravo/obj/SHARED_LIBRARIES/libFFTEm_intermediates/LINKED/libFFTEm.so)
Install: out/target/product/bravo/system/lib/libSR_AudioIn.so
target SharedLib: libandroid (out/target/product/bravo/obj/SHARED_LIBRARIES/libandroid_intermediates/LINKED/libandroid.so)
target SharedLib: libaudioeffect_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/libaudioeffect_jni_intermediates/LINKED/libaudioeffect_jni.so)
target SharedLib: libjnigraphics (out/target/product/bravo/obj/SHARED_LIBRARIES/libjnigraphics_intermediates/LINKED/libjnigraphics.so)
target SharedLib: librs_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/librs_jni_intermediates/LINKED/librs_jni.so)
target SharedLib: libsoundpool (out/target/product/bravo/obj/SHARED_LIBRARIES/libsoundpool_intermediates/LINKED/libsoundpool.so)
Install: out/target/product/bravo/system/lib/libsrec_jni.so
target SharedLib: libttssynthproxy (out/target/product/bravo/obj/SHARED_LIBRARIES/libttssynthproxy_intermediates/LINKED/libttssynthproxy.so)
target SharedLib: libwebcore (out/target/product/bravo/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so)
target Jar: core-tests-dalvik (out/target/common/obj/JAVA_LIBRARIES/core-tests-dalvik_intermediates/javalib.jar)
'out/target/common/obj/JAVA_LIBRARIES/core-tests-dalvik_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-dom_intermediates/emma_out/lib/classes-jarjar.jar
target Jar: core-tests-json (out/target/common/obj/JAVA_LIBRARIES/core-tests-json_intermediates/javalib.jar)
'out/target/common/obj/JAVA_LIBRARIES/core-tests-json_intermediates//classes.dex' as 'classes.dex'...
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests-xml_intermediates/noproguard.classes.dex
target Executable: AudioHardwareRecordLoop (out/target/product/bravo/obj/EXECUTABLES/AudioHardwareRecordLoop_intermediates/LINKED/AudioHardwareRecordLoop)
target Executable: AudioHardwareRecord (out/target/product/bravo/obj/EXECUTABLES/AudioHardwareRecord_intermediates/LINKED/AudioHardwareRecord)
target Executable: AudioInRecord (out/target/product/bravo/obj/EXECUTABLES/AudioInRecord_intermediates/LINKED/AudioInRecord)
target Executable: SRecTestAudio (out/target/product/bravo/obj/EXECUTABLES/SRecTestAudio_intermediates/LINKED/SRecTestAudio)
target Executable: SRecTest (out/target/product/bravo/obj/EXECUTABLES/SRecTest_intermediates/LINKED/SRecTest)
target Executable: quake (out/target/product/bravo/obj/EXECUTABLES/quake_intermediates/LINKED/quake)
target SharedLib: libplatform_library_jni (out/target/product/bravo/obj/SHARED_LIBRARIES/libplatform_library_jni_intermediates/LINKED/libplatform_library_jni.so)
target Executable: app_process (out/target/product/bravo/obj/EXECUTABLES/app_process_intermediates/LINKED/app_process)
Install: out/target/product/bravo/system/lib/libandroid_runtime.so
target SharedLib: libstagefright (out/target/product/bravo/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so)
make: *** [out/host/linux-x86/obj/EXECUTABLES/dx-tests_intermediates/dx-tests] Killed
make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/dx-tests_intermediates/dx-tests'
make: *** Waiting for unfinished jobs....
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed

Looks like libstagefright is the cause?