mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
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>
This commit is contained in:
parent
036efac5bc
commit
4f2ba910b5
@ -15,4 +15,10 @@ YAML_CPP_CONF_OPTS += \
|
|||||||
-DYAML_CPP_BUILD_TESTS=OFF \
|
-DYAML_CPP_BUILD_TESTS=OFF \
|
||||||
-DYAML_CPP_BUILD_TOOLS=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))
|
$(eval $(cmake-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user