Closed gannaramu closed 2 years ago
Imho this is something you should raise with @PaulStoffregen.
I've put this on my list of issues to investigate.
Sorry, can't look at it right now. I'm working on 3 urgent projects, all behind schedule. :(
It might be the case. Possible Teensy's platform defines cause BR_USE_UNIX_TIME
to be set to 1
consequently requiring linking to _gettimeofday
. In this case it would be as simple as adding a statement preventing this. @PaulStoffregen what would be a suitable define set in all Teensy platforms?
I do not know what compiler tag TEENSY defines, but in my port to the ESP32 I added
#if defined __unix__ || defined __linux__ || defined ESP32
and now it works like a charm.
My port to the ESP32 is here
I guess the teensy 4.x have the defines as:
#if defined(__IMXRT1052__) || defined(__IMXRT1062__)
Added _gettimeofday to Teensy 4.x core library. https://github.com/PaulStoffregen/cores/commit/50342d77de1b495ee359e78c12153bb6532a5727
Added _gettimeofday to Teensy 4.x core library. PaulStoffregen/cores@50342d7
Thank you :bow:
I keep getting
undefined reference to `_gettimeofday
issue when importing the ArduinoBearSSL library.undefined reference to `_gettimeofday'
the fix mentioned https://github.com/arduino/Arduino/issues/9413 seems to solve it.
But wanted to understand the reason for this issue? any help is appreciated.
Thanks