aboutsummaryrefslogtreecommitdiff
path: root/package/yaml-cpp
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-04-21 20:35:43 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-04-21 21:36:15 +0200
commit4f2ba910b519a195622ccc56a8fe6c04995524e7 (patch)
tree07ee0645e23c5cc38a3669bc70a1a297efb26c27 /package/yaml-cpp
parent036efac5bc6146fb2638fc302159bac8e645ffd9 (diff)
downloadbuildroot-4f2ba910b519a195622ccc56a8fe6c04995524e7.tar.gz
buildroot-4f2ba910b519a195622ccc56a8fe6c04995524e7.tar.bz2
package/yaml-cpp: build shared library if needed
yaml-cpp builds only a static library by default, this will raise a build failure with upcoming mongodb 4.2.x as reported by Ryan Barnett due to mongodb linking with a static library that obviously will miss -fPIC Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/yaml-cpp')
-rw-r--r--package/yaml-cpp/yaml-cpp.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/yaml-cpp/yaml-cpp.mk b/package/yaml-cpp/yaml-cpp.mk
index 906e554ed7..beb8d6f55f 100644
--- a/package/yaml-cpp/yaml-cpp.mk
+++ b/package/yaml-cpp/yaml-cpp.mk
@@ -15,4 +15,10 @@ YAML_CPP_CONF_OPTS += \
-DYAML_CPP_BUILD_TESTS=OFF \
-DYAML_CPP_BUILD_TOOLS=OFF
+ifeq ($(BR2_STATIC_LIBS),y)
+YAML_CPP_CONF_OPTS += -DYAML_BUILD_SHARED_LIBS=OFF
+else
+YAML_CPP_CONF_OPTS += -DYAML_BUILD_SHARED_LIBS=ON
+endif
+
$(eval $(cmake-package))