Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/lzo: enable shared/static libs when needed
@ 2017-09-02 14:28 Yann E. MORIN
  2017-09-02 16:44 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Yann E. MORIN @ 2017-09-02 14:28 UTC (permalink / raw)
  To: buildroot

In 61c4c63 (package/lzo: switch to cmake), building lzo has switched
from autotools to cmake. In the conversion, we've lost the build of the
shared library, because the cmake-based buildsystem of lzo explcitly
disables it by default.

Restore the shared library build.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>

---
Note: it was noticed because of an autobuild failure of cairo:
http://autobuild.buildroot.org/results/d51/d51888cbc3a743d53ce38f736ee43953e50bdf61/
but it has not been checked wether this patch fixes the build at all.
Yet, the patch is still valid even without fixing the autobuild failure.
---
 package/lzo/lzo.mk | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/package/lzo/lzo.mk b/package/lzo/lzo.mk
index dba965fcd3..27ca459acf 100644
--- a/package/lzo/lzo.mk
+++ b/package/lzo/lzo.mk
@@ -11,5 +11,17 @@ LZO_LICENSE_FILES = COPYING
 LZO_INSTALL_STAGING = YES
 LZO_SUPPORTS_IN_SOURCE_BUILD = NO
 
+ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+LZO_CONF_OPTS += -DENABLE_SHARED=ON
+else
+LZO_CONF_OPTS += -DENABLE_SHARED=OFF
+endif
+
+ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+LZO_CONF_OPTS += -DENABLE_STATIC=ON
+else
+LZO_CONF_OPTS += -DENABLE_STATIC=OFF
+endif
+
 $(eval $(cmake-package))
 $(eval $(host-cmake-package))
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/lzo: enable shared/static libs when needed
  2017-09-02 14:28 [Buildroot] [PATCH] package/lzo: enable shared/static libs when needed Yann E. MORIN
@ 2017-09-02 16:44 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-09-02 16:44 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat,  2 Sep 2017 16:28:53 +0200, Yann E. MORIN wrote:
> In 61c4c63 (package/lzo: switch to cmake), building lzo has switched
> from autotools to cmake. In the conversion, we've lost the build of the
> shared library, because the cmake-based buildsystem of lzo explcitly
> disables it by default.
> 
> Restore the shared library build.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
> 
> ---
> Note: it was noticed because of an autobuild failure of cairo:
> http://autobuild.buildroot.org/results/d51/d51888cbc3a743d53ce38f736ee43953e50bdf61/
> but it has not been checked wether this patch fixes the build at all.
> Yet, the patch is still valid even without fixing the autobuild failure.
> ---
>  package/lzo/lzo.mk | 12 ++++++++++++
>  1 file changed, 12 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-02 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-02 14:28 [Buildroot] [PATCH] package/lzo: enable shared/static libs when needed Yann E. MORIN
2017-09-02 16:44 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox