summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-03 21:30:44 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-03 21:31:30 (GMT)
commit287775d241b90993de3d0da3af11e72b5c406084 (patch)
tree1a11bdac1197218b5ebd24843c5fc6033a33acf7
parentaca8412ce27fdb216e80145933baa13c15118719 (diff)
downloadbuildroot-287775d241b90993de3d0da3af11e72b5c406084.tar.gz
buildroot-287775d241b90993de3d0da3af11e72b5c406084.tar.bz2
cjson: add comment explaining how BUILD_SHARED_AND_STATIC_LIBS works
This was missing in commit aca8412ce27fdb216e80145933baa13c15118719 ("cjson: build shared and static library"). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/cjson/cjson.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/cjson/cjson.mk b/package/cjson/cjson.mk
index aabf367..6dff7d6 100644
--- a/package/cjson/cjson.mk
+++ b/package/cjson/cjson.mk
@@ -15,6 +15,9 @@ CJSON_CONF_OPTS += \
-DENABLE_CJSON_TEST=OFF \
-DENABLE_CUSTOM_COMPILER_FLAGS=OFF
+# If BUILD_SHARED_AND_STATIC_LIBS is set to OFF, cjson uses the
+# standard BUILD_SHARED_LIBS option which is passed by the
+# cmake-package infrastructure.
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
CJSON_CONF_OPTS += -DBUILD_SHARED_AND_STATIC_LIBS=ON
else