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

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Tue May 7 13:58:04 UTC 2019

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

However, libsamsung-ipc is dynamically linked to

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 993d3fb..bbcd695 100644
--- a/Android.mk
+++ b/Android.mk
@@ -47,8 +47,7 @@ LOCAL_C_INCLUDES := \
-LOCAL_SHARED_LIBRARIES := libcutils libnetutils libutils liblog libpower
-LOCAL_STATIC_LIBRARIES := libsamsung-ipc
+LOCAL_SHARED_LIBRARIES := libcutils libnetutils libutils liblog libpower libsamsung-ipc
 LOCAL_MODULE_TAGS := optional

More information about the Replicant mailing list