Azure/azure-c-shared-utility

Question: wolfSSL in custom dir on Linux

Closed this issue · 1 comments

Is there any chance to use wolfSSL, in case it is not installed to /usr/ in Linux, but to a custom directory?
Similar to what is done for Windows:

include_directories($ENV{WolfSSLDir})

It is not able to find the headers and I assume it will also not find the library when linking.
/root/source/azure-iot-sdk-c/c-utility/adapters/tlsio_wolfssl.c:6:10: fatal error: wolfssl/options.h: No such file or directory
6 | #include "wolfssl/options.h"

CIPop commented

With regards to include files on Linux, no. You can either link the include files to the proper paths so they are not copied or copy them in one of the include folders our build system searches.

Libs are picked up based on LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/wolfssllibs