From bfd8d7be71310e340acf955c053fe7070591bf6e Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 20 Apr 2020 01:26:28 +0200 Subject: [PATCH] package/libuwsc: manage BUILD_STATIC_LIBS Use BUILD_STATIC_LIBS added in version 3.3.5 with https://github.com/zhaojh329/libuwsc/commit/1759dfd7d9f65775dc0a27e85b8c8c482efbfd00 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/libuwsc/libuwsc.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/libuwsc/libuwsc.mk b/package/libuwsc/libuwsc.mk index 08ea72c1f3..cad351529d 100644 --- a/package/libuwsc/libuwsc.mk +++ b/package/libuwsc/libuwsc.mk @@ -43,4 +43,11 @@ else LIBUWSC_CONF_OPTS += -DUWSC_LUA_SUPPORT=OFF endif +# BUILD_SHARED_LIBS is handled in pkg-cmake.mk as it is a generic cmake variable +ifeq ($(BR2_SHARED_STATIC_LIBS),y) +LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=ON +else ifeq ($(BR2_SHARED_LIBS),y) +LIBUWSC_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF +endif + $(eval $(cmake-package)) -- 2.30.2