Yes, as long as the user_settings.h file is in the include path it will be used.
I've added that flag to the Makefile, and have user_settings in my project's inc directory but when I go to compile everything I get a failure for undefined references and unknown types for things I have defined in user_settings
Is there somewhere in the wolfssl directory that it needs to be in?
For reference my user_settings.h is:
#ifndef WOLFSSL_USER_SETTINGS
#define WOLFSSL_USER_SETTINGS
#ifdef __cplusplus
extern "C" {
#endif
#define BLOCK_SIZE AES_BLOCK_SIZE
#define KEY_SIZE 32
#define HASH_SIZE SHA256_DIGEST_SIZE
#define HAVE_ECC_VERIFY
#define HAVE_ECC256
#undef WC_NO_HASHDRBG
#define WC_NO_HASHDRBG
#undef CUSTOM_RAND_TYPE
#define CUSTOM_RAND_TYPE int
#undef CUSTOM_RAND_GENERATE
#define CUSTOM_RAND_GENERATE rand_gen
extern unsigned int rand_gen(void);
#undef CUSTOM_RAND_GENERATE_BLOCK
#define CUSTOM_RAND_GENERATE_BLOCK custom_rand_generate_block
extern unsigned int custom_rand_generate_block(unsigned char* data, unsigned int len);
#undef NO_RSA
#define NO_RSA
#undef WOLFSSL_SHA3
#define WOLFSSL_SHA3
#undef NO_CRYPT_BENCHMARK
#define NO_CRYPT_BENCHMARK
#undef NO_CRYPT_TEST
#define NO_CRYPT_TEST
#undef NO_FILESYSTEM
#define NO_FILESYSTEM
#undef NO_WRITEV
#define NO_WRITEV
#undef NO_MAIN_DRIVER
#define NO_MAIN_DRIVER
#undef NO_DSA
#define NO_DSA
#undef NO_RC4
#define NO_RC4
#ifdef __cpluplus
}
#endif //END OF C++
#endif //END WOLFSSL_USER_SETTINGS