From c6bf87d75456e2ade54acf79beff0d2045466a24 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 6 Jan 2011 23:38:44 +0100 Subject: core/jni/Android.mk: conditionally link to libloc_api if we don't link to libloc_api when the gps libraries are the libloc_api libraries and not the gpslib, the result is the following: undefined reference to `gps_get_interface' Note that the libloc api were previously modified from gps_get_hardware_interface to gps_get_interface to make them work. Change-Id: I0da6f449b1cc3f1d5514b983c8e5e1709aedc02b Signed-off-by: Denis 'GNUtoo' Carikli --- core/jni/Android.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/jni/Android.mk b/core/jni/Android.mk index ac188b8..7560bf2 100644 --- a/core/jni/Android.mk +++ b/core/jni/Android.mk @@ -192,6 +192,11 @@ LOCAL_SHARED_LIBRARIES := \ libwpa_client \ libjpeg +ifeq ($(BOARD_GPS_LIBRARIES),libloc_api) + LOCAL_SHARED_LIBRARIES += \ + libloc_api +endif + ifneq ($(BOARD_USES_ECLAIR_LIBCAMERA),true) LOCAL_SHARED_LIBRARIES += \ libsurfaceflinger_client \ -- cgit v1.1