2d80864d2b
By default, the lzo package builds and installs only a static library. For the target variant, we pass the appropriate ENABLE_STATIC/ENABLE_SHARED options, but not for the host package, and therefore a static lzo library gets installed. However, on the host, our policy is to build shared libraries and not static libraries, as visible in the default configure options passed to host package in pkg-autotools.mk (--enable-shared --disable-static). Let's do the same with lzo. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
30 lines
757 B
Makefile
30 lines
757 B
Makefile
################################################################################
|
|
#
|
|
# lzo
|
|
#
|
|
################################################################################
|
|
|
|
LZO_VERSION = 2.10
|
|
LZO_SITE = http://www.oberhumer.com/opensource/lzo/download
|
|
LZO_LICENSE = GPL-2.0+
|
|
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
|
|
|
|
HOST_LZO_CONF_OPTS += -DENABLE_SHARED=ON -DENABLE_STATIC=OFF
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|