Before this change, libsamsung-ril was using
libsamsung-ipc as a static library.

However, libsamsung-ipc is dynamically linked to
libcrypto.

Statically linking libsamsung-ril to libsamsung-ipc
results in the following errors, which disapear when
using dynamic linking:
  rfs.c:50: error: undefined reference to 'MD5_Init'
  rfs.c:51: error: undefined reference to 'MD5_Update'
  rfs.c:52: error: undefined reference to 'MD5_Update'
  rfs.c:53: error: undefined reference to 'MD5_Final'

Signed-off-by: Denis 'GNUtoo' Carikli <gnu...@cyberdimension.org>
---
 Android.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Android.mk b/Android.mk
index a7f53c6..6585a31 100644
--- a/Android.mk
+++ b/Android.mk
@@ -48,8 +48,7 @@ LOCAL_C_INCLUDES := \
 
 LOCAL_CFLAGS := -DRIL_SHLIB
 
-LOCAL_SHARED_LIBRARIES := libcutils libnetutils libutils liblog libpower 
libcrypto
-LOCAL_STATIC_LIBRARIES := libsamsung-ipc
+LOCAL_SHARED_LIBRARIES := libcutils libnetutils libutils liblog libpower 
libcrypto libsamsung-ipc
 
 LOCAL_PRELINK_MODULE := false
 LOCAL_MODULE_TAGS := optional
-- 
2.21.0

_______________________________________________
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to