Skip to contentSkip to conversation

package/libcpprestsdk: fix static build with boost 1.70.0

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 17, 2019 – Apr 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libcpprestsdk: fix static build with boost 1.70.0

Fixes:
- http://autobuild.buildroot.org/results/36ef83aefd24bcc6bbf58812aa07aa0f6072cd09

---
 package/libcpprestsdk/libcpprestsdk.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/libcpprestsdk/libcpprestsdk.mk +6 -0
index fd1201f287..7ebfc25f24 100644
@@ -12,6 +12,12 @@ LIBCPPRESTSDK_SUBDIR = Release
 LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl zlib
 LIBCPPRESTSDK_CONF_OPTS = -DWERROR=OFF -DBUILD_SAMPLES=OFF
 
+ifeq ($(BR2_STATIC_LIBS),y)
+LIBCPPRESTSDK_CONF_OPTS += \
+	-DBoost_USE_STATIC_LIBS=ON \
+	-DBoost_USE_STATIC_RUNTIME=ON
+endif
+
 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
 endif
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/libcpprestsdk: fix static build with boost 1.70.0

Quoted 7 lines · On Wed, 17 Apr 2019 23:00:50 +0200 Fabrice Fontaine…

Fixes:
- http://autobuild.buildroot.org/results/36ef83aefd24bcc6bbf58812aa07aa0f6072cd09

---
 package/libcpprestsdk/libcpprestsdk.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com