[Replicant] [PATCH ][V2] Fix undefined references to MD5_{Init, Update, Final}

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Wed Jun 19 12:49:53 UTC 2019


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 <GNUtoo at 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



More information about the Replicant mailing list