File linphone-05-fix-jsoncpp_static.patch of Package linphone
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -31,9 +31,33 @@
mediastreamer
)
+# This causes an issue in OBS Build Service:
+# ------------------------------------------
+#if (ENABLE_FLEXIAPI)
+# list(APPEND LINK_LIBS jsoncpp_static)
+#endif()
+
+# Possible solutions:
+# ------------------------------------------
+#if (ENABLE_FLEXIAPI)
+# if (XCODE)
+# list(APPEND LINK_LIBS jsoncpp_static)
+# else()
+# list(APPEND LINK_LIBS jsoncpp_object)
+# endif()
+#endif()
+#
+# or
if (ENABLE_FLEXIAPI)
- list(APPEND LINK_LIBS jsoncpp_static)
+ if(ENABLE_STATIC)
+ list(APPEND LINK_LIBS jsoncpp_static)
+ endif()
+# if(ENABLE_SHARED)
+# list(APPEND LINK_LIBS jsoncpp_object)
+# endif()
endif()
+# End Solution
+# ------------------------------------------
#APPLE_LIBS is mandatory for apple compilation
if(APPLE)