IVGCVSW-6232 Integrate static library libtensorflow-lite.a with ArmNN

Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: Ieb5fa0c4bb6753f0af21cfd80f1bf9faba55f7d0
diff --git a/delegate/CMakeLists.txt b/delegate/CMakeLists.txt
index effb093..aed77bf 100644
--- a/delegate/CMakeLists.txt
+++ b/delegate/CMakeLists.txt
@@ -72,6 +72,12 @@
 
 target_link_libraries(armnnDelegate PUBLIC ${TfLite_LIB})
 
+#  lpthread and ldl are not required for Android
+if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL Android)
+    target_link_libraries(armnnDelegate PUBLIC -lpthread)
+    target_link_libraries(armnnDelegate PUBLIC -ldl)
+endif()
+
 # Various tflite header files are not warning clean
 # We can't change compilation flags on header files directly, so we need to add them to an interface library first
 add_library(tflite_headers INTERFACE)