jsoncpp: do not always build static library
PATCH v2 1/1 jsoncpp: do not always build static library
Currently, static libray is always built as BUILD_STATIC_LIBS is ON by default so correctly set BUILD_STATIC_LIBS depending on BR2_SHARED_LIBS variable
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Only set BUILD_STATIC_LIBS and not BUILD_SHARED_LIBS as it is already
set by the build system
package/jsoncpp/jsoncpp.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/jsoncpp/jsoncpp.mk +6 -0
@@ -15,4 +15,10 @@ JSONCPP_CONF_OPTS += \ -DJSONCPP_WITH_TESTS=OFF \ -DJSONCPP_WITH_STRICT_ISO=OFF +ifeq ($(BR2_SHARED_LIBS),y) +JSONCPP_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF +else +JSONCPP_CONF_OPTS += -DBUILD_STATIC_LIBS=ON +endif + $(eval $(cmake-package))
Signature · 1 line
2.14.1
PATCH v2 1/1 jsoncpp: do not always build static library
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Currently, static libray is always built as
BUILD_STATIC_LIBSis ON by default so correctly setBUILD_STATIC_LIBSdepending onBR2_SHARED_LIBSvariableSigned-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Only setBUILD_STATIC_LIBSand notBUILD_SHARED_LIBSas it is already
set by the build system
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard