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
|
|
|
|
2017-07-30 16:47:31 +02:00
|
|
|
SNAPPY_VERSION = be6dc3db83c4701e3e79694dcbfd1c3da03b91dd
|
2014-06-01 23:43:41 +02:00
|
|
|
SNAPPY_SITE = $(call github,google,snappy,$(SNAPPY_VERSION))
|
2017-03-30 15:43:38 +02:00
|
|
|
SNAPPY_LICENSE = BSD-3-Clause
|
2014-06-01 23:43:40 +02:00
|
|
|
SNAPPY_LICENSE_FILES = COPYING
|
|
|
|
SNAPPY_INSTALL_STAGING = YES
|
2017-07-30 16:47:31 +02:00
|
|
|
SNAPPY_CONF_OPTS = -DSNAPPY_BUILD_TESTS=OFF
|
2015-07-14 13:31:11 +02:00
|
|
|
|
2016-10-01 21:04:47 +02:00
|
|
|
# libsnappy links with libstdc++. Some libstdc++/arch variants use
|
2017-07-30 16:47:30 +02:00
|
|
|
# pthread symbols for internal locking if built with thread
|
2016-10-01 21:04:47 +02:00
|
|
|
# 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
|
|
|
|
|
2017-07-30 16:47:31 +02:00
|
|
|
$(eval $(cmake-package))
|