From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/libuwsc: manage BUILD_STATIC_LIBS
Date: Mon, 20 Apr 2020 01:26:28 +0200 [thread overview]
Message-ID: <20200419232628.385881-2-fontaine.fabrice@gmail.com> (raw)
In-Reply-To: <20200419232628.385881-1-fontaine.fabrice@gmail.com>
Use BUILD_STATIC_LIBS added in version 3.3.5 with
https://github.com/zhaojh329/libuwsc/commit/1759dfd7d9f65775dc0a27e85b8c8c482efbfd00
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
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.25.1
next prev parent reply other threads:[~2020-04-19 23:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-19 23:26 [Buildroot] [PATCH 1/2] package/libuwsc: lua needs dynamic library Fabrice Fontaine
2020-04-19 23:26 ` Fabrice Fontaine [this message]
2020-04-20 5:53 ` [Buildroot] [PATCH 2/2] package/libuwsc: manage BUILD_STATIC_LIBS Thomas Petazzoni
2020-04-20 5:53 ` [Buildroot] [PATCH 1/2] package/libuwsc: lua needs dynamic library Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200419232628.385881-2-fontaine.fabrice@gmail.com \
--to=fontaine.fabrice@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox