lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
237 stars 156 forks source link

Fix error caused by librt not existing for newer glibc versions #216

Closed embeddedt closed 2 years ago

embeddedt commented 2 years ago

I'm using Arch Linux nowadays, which uses a very new glibc. It seems that recently librt.so and some other libraries were merged into libc.so and replaced by stubs (source). Unfortunately, it doesn't appear that a stub for librt.so exists, and if it does, it is not compatible with Micropython's FFI for some reason.

Using the value of libc when librt.so does not exist seems to be a valid workaround, which is what I'm proposing here.

amirgon commented 2 years ago

Looks good to me. Thanks!