2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-14 13:45:59 +02:00
|
|
|
#
|
|
|
|
# snappy
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-14 13:45:59 +02:00
|
|
|
|
2016-10-01 21:04:48 +02:00
|
|
|
SNAPPY_VERSION = 32d6d7d8a2ef328a2ee1dd40f072e21f4983ebda
|
2014-06-01 23:43:41 +02:00
|
|
|
SNAPPY_SITE = $(call github,google,snappy,$(SNAPPY_VERSION))
|
2014-06-01 23:43:40 +02:00
|
|
|
SNAPPY_LICENSE = BSD-3c
|
|
|
|
SNAPPY_LICENSE_FILES = COPYING
|
2014-06-02 21:17:10 +02:00
|
|
|
# from git
|
|
|
|
SNAPPY_AUTORECONF = YES
|
2014-12-17 13:25:59 +01:00
|
|
|
SNAPPY_DEPENDENCIES = host-pkgconf
|
2014-06-01 23:43:40 +02:00
|
|
|
SNAPPY_INSTALL_STAGING = YES
|
2013-05-14 13:45:59 +02:00
|
|
|
|
2015-07-14 13:31:11 +02:00
|
|
|
# Disable tests
|
|
|
|
SNAPPY_CONF_OPTS = --disable-gtest
|
|
|
|
|
2016-10-01 21:04:47 +02:00
|
|
|
# libsnappy links with libstdc++. Some libstdc++/arch variants use
|
|
|
|
# pthread symbols for internal locking if built with thead
|
|
|
|
# support. libstdc++ does not have a .pc file, and its .la file does
|
|
|
|
# not mention -pthread. So, static linkig to libstdc++ will fail if
|
|
|
|
# -pthread is not explicity linked to. Only do that for static builds.
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
|
|
|
|
SNAPPY_CONF_OPTS += LIBS=-pthread
|
|
|
|
endif
|
|
|
|
|
2013-05-14 13:45:59 +02:00
|
|
|
$(eval $(autotools-package))
|