From: Felix Fietkau Date: Wed, 12 Jun 2013 10:16:47 +0000 (+0000) Subject: AA: uhttpd: fix build error with the new json-c (#13690) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=63b7155ce013121ca1f00351ec4eb85ddc8b358a;p=openwrt%2Fsvn-archive%2Farchive.git AA: uhttpd: fix build error with the new json-c (#13690) Signed-off-by: Felix Fietkau SVN-Revision: 36924 --- diff --git a/package/uhttpd/patches/100-json_c.patch b/package/uhttpd/patches/100-json_c.patch new file mode 100644 index 0000000000..06671fc513 --- /dev/null +++ b/package/uhttpd/patches/100-json_c.patch @@ -0,0 +1,15 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -62,10 +62,11 @@ ELSE() + MESSAGE(FATAL_ERROR "Invalid TLS provider option, use none|openssl|cyassl") + ENDIF() + ++FIND_LIBRARY(json json-c json) + IF(UBUS_SUPPORT) + ADD_DEFINITIONS(-DHAVE_UBUS) + ADD_LIBRARY(uhttpd_ubus MODULE uhttpd-ubus.c) +- TARGET_LINK_LIBRARIES(uhttpd_ubus ubox ubus json blobmsg_json) ++ TARGET_LINK_LIBRARIES(uhttpd_ubus ubox ubus ${json} blobmsg_json) + SET(PLUGINS ${PLUGINS} uhttpd_ubus) + ENDIF() +