kumquat-buildroot/package/mosh/mosh.mk
Fabrice Fontaine c4e4110d22 mosh: fix build with protobuf 3.6.0
protobuf now requires C++11

Fixes:
 - http://autobuild.buildroot.net/results/6e4550e080a9d558b441dcc735b6be14f39fb03f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-06-23 23:04:43 +02:00

34 lines
1000 B
Makefile

################################################################################
#
# mosh
#
################################################################################
MOSH_VERSION = 1.3.2
MOSH_SITE = https://mosh.org
MOSH_DEPENDENCIES = zlib ncurses protobuf host-pkgconf
MOSH_LICENSE = GPL-3.0+ with exception
MOSH_LICENSE_FILES = COPYING COPYING.iOS
# protobuf needs c++11 (since 3.6.0)
MOSH_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
ifeq ($(BR2_PACKAGE_OPENSSL),y)
MOSH_CONF_OPTS += --with-crypto-library=openssl
MOSH_DEPENDENCIES += openssl
else
MOSH_CONF_OPTS += --with-crypto-library=nettle
MOSH_DEPENDENCIES += nettle
endif
# help the detection of the SSP support: mosh configure.ac doesn't do
# a link test, so it doesn't detect when the toolchain doesn't have
# libssp.
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),)
MOSH_CONF_ENV += \
ax_cv_check_cflags__Werror___fstack_protector_all=no \
ax_cv_check_cxxflags__Werror___fstack_protector_all=no
endif
$(eval $(autotools-package))