package/azure-iot-sdk: fix static build
Disable provisioning client when building statically to avoid the following build failure raised since bump to version LTS_01_2022_Ref01 in commit06bb3640c1
and1de399fd48
which enabled provisioning client by default: /home/buildroot/autobuild/instance-3/output-1/build/azure-iot-sdk-c-LTS_01_2023_Ref02/provisioning_client/deps/utpm/src/tpm_comm_linux.c:13:10: fatal error: dlfcn.h: No such file or directory 13 | #include <dlfcn.h> | ^~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/894188649f66d9917e1ed94989ebe307102ab28c - http://autobuild.buildroot.org/results/735b96c842796f309c33a0545eeb2e8f8d1f75ca Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
21eca49ed5
commit
ce0d4efa76
@ -14,4 +14,10 @@ AZURE_IOT_SDK_C_INSTALL_STAGING = YES
|
||||
AZURE_IOT_SDK_C_DEPENDENCIES = libxml2 openssl libcurl util-linux
|
||||
AZURE_IOT_SDK_C_CONF_OPTS = -Dskip_samples=ON
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
AZURE_IOT_SDK_C_CONF_OPTS += -Duse_prov_client=OFF
|
||||
else
|
||||
AZURE_IOT_SDK_C_CONF_OPTS += -Duse_prov_client=ON
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
|
Loading…
Reference in New Issue
Block a user