mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
package/libcpprestsdk: fix static build with boost 1.70.0
Fixes: - http://autobuild.buildroot.org/results/36ef83aefd24bcc6bbf58812aa07aa0f6072cd09 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
3851e2259b
commit
762eec1ce9
@ -12,6 +12,12 @@ LIBCPPRESTSDK_SUBDIR = Release
|
|||||||
LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl zlib
|
LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl zlib
|
||||||
LIBCPPRESTSDK_CONF_OPTS = -DWERROR=OFF -DBUILD_SAMPLES=OFF
|
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)
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||||
LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user