mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 8aeafa1c2ec90b0e95ba5944266eda115457e10d Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 15 Jun 2020 13:40:22 +0200
|
||||
Subject: [PATCH] cmake/FindMahoMqttC.cmake: fix static build
|
||||
|
||||
Static libraries of paho-mqtt-c are not suffixed with -static since
|
||||
version 1.3.2 and
|
||||
https://github.com/eclipse/paho.mqtt.c/commit/8cc51c78b76a1eabd1df3124b0887ce8b01070ff
|
||||
|
||||
See: https://github.com/eclipse/paho.mqtt.c/pull/704
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/eclipse/paho.mqtt.cpp/pull/275]
|
||||
---
|
||||
cmake/FindPahoMqttC.cmake | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/cmake/FindPahoMqttC.cmake b/cmake/FindPahoMqttC.cmake
|
||||
index 53f15a3..0ec95bd 100644
|
||||
--- a/cmake/FindPahoMqttC.cmake
|
||||
+++ b/cmake/FindPahoMqttC.cmake
|
||||
@@ -5,10 +5,6 @@ if(PAHO_WITH_SSL)
|
||||
else()
|
||||
set(_PAHO_MQTT_C_LIB_NAME paho-mqtt3a)
|
||||
endif()
|
||||
-# add suffix when using static Paho MQTT C library variant
|
||||
-if(PAHO_BUILD_STATIC)
|
||||
- set(_PAHO_MQTT_C_LIB_NAME ${_PAHO_MQTT_C_LIB_NAME}-static)
|
||||
-endif()
|
||||
|
||||
find_library(PAHO_MQTT_C_LIBRARIES NAMES ${_PAHO_MQTT_C_LIB_NAME})
|
||||
unset(_PAHO_MQTT_C_LIB_NAME)
|
||||
--
|
||||
2.26.2
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
config BR2_PACKAGE_PAHO_MQTT_CPP
|
||||
bool "paho-mqtt-cpp"
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
@@ -10,9 +9,8 @@ config BR2_PACKAGE_PAHO_MQTT_CPP
|
||||
|
||||
https://eclipse.org/paho/clients/cpp/
|
||||
|
||||
comment "paho-mqtt-cpp needs a toolchain w/ threads, C++, dynamic library support"
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_INSTALL_LIBSTDCPP
|
||||
comment "paho-mqtt-cpp needs a toolchain w/ threads, C++"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
|
||||
|
||||
comment "paho-mqtt-cpp needs a toolchain not affected by GCC bug 64735"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Locally computed:
|
||||
sha256 9f78afb988e9ce9bb7cb74805053221efbb073b74683e222d1d087633178b51f paho-mqtt-cpp-1.0.0.tar.gz
|
||||
sha256 cb0343349ed91ef51d0e76ae860d19435a730d3d355e57886bb090014cb70bbe paho-mqtt-cpp-1.1.tar.gz
|
||||
sha256 83bbba033dc985487e321b6dfde111772affb73460be48726299fed3da684b1c edl-v10
|
||||
sha256 44277b2bec6093e4ac313afec251a4de599d24c4e768f8574d95b13a9d2d97b5 epl-v10
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PAHO_MQTT_CPP_VERSION = 1.0.0
|
||||
PAHO_MQTT_CPP_VERSION = 1.1
|
||||
PAHO_MQTT_CPP_SITE = $(call github,eclipse,paho.mqtt.cpp,v$(PAHO_MQTT_CPP_VERSION))
|
||||
PAHO_MQTT_CPP_LICENSE = EPL-1.0 or BSD-3-Clause
|
||||
PAHO_MQTT_CPP_LICENSE_FILES = epl-v10 edl-v10
|
||||
@@ -22,4 +22,18 @@ else
|
||||
PAHO_MQTT_CPP_CONF_OPTS += -DPAHO_WITH_SSL=FALSE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
PAHO_MQTT_CPP_CONF_OPTS += \
|
||||
-DPAHO_BUILD_SHARED=TRUE \
|
||||
-DPAHO_BUILD_STATIC=FALSE
|
||||
else ifeq ($(BR2_STATIC_LIBS),y)
|
||||
PAHO_MQTT_CPP_CONF_OPTS += \
|
||||
-DPAHO_BUILD_SHARED=FALSE \
|
||||
-DPAHO_BUILD_STATIC=TRUE
|
||||
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
||||
PAHO_MQTT_CPP_CONF_OPTS += \
|
||||
-DPAHO_BUILD_SHARED=TRUE \
|
||||
-DPAHO_BUILD_STATIC=TRUE
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
||||
Reference in New Issue
Block a user