File linphone-fix-Archlinux-compilation.patch of Package linphone
diff -U 3 -H -d -r -N -- liblinphone.orig/CMakeLists.txt liblinphone/CMakeLists.txt
--- liblinphone.orig/CMakeLists.txt
+++ liblinphone/CMakeLists.txt
@@ -86,6 +86,32 @@
# * DISABLE_BC_PACKAGE_SEARCH: skip find_package() for every BC package (bctoolbox, ortp, etc.)
# * DISABLE_SOCI_PACKAGE_SEARCH: skip find_package() for Soci.
+##########################################################
+##
+## Archlinux fix for CMake
+## not being able to find all libraries
+##
+# Add functionality to print variables (useful for CMake debugging)
+include(CMakePrintHelpers)
+#
+# Determine where libraries usually end up...
+# /usr/lib64 on Fedora ... /usr/lib/x86_64-linux-gnu/ on Debian
+# It is needed when libraries are imported.
+# A typical linux library would be libc.so
+find_library(MY_LIBC_LIBRARY libc.so)
+# Get parent directory of libc.so
+cmake_path(GET MY_LIBC_LIBRARY PARENT_PATH MY_LINUX_USUAL_LIBRARY_DIR)
+cmake_print_variables(MY_LINUX_USUAL_LIBRARY_DIR)
+# Fix import libraries that CMake cannot find on its own
+add_library(jsoncpp_lib SHARED IMPORTED)
+set_property(TARGET jsoncpp_lib PROPERTY
+# IMPORTED_LOCATION "${MY_LINUX_USUAL_LIBRARY_DIR}/libjsoncpp.so")
+ IMPORTED_LOCATION "/usr/lib/libjsoncpp.so")
+##
+## End modification
+##
+###########################################################
+
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS NO)