Commit 547d4fe
committed
unix-ffi/ffilib/ffilib.py: Extend libc versions range.
This commit extends the range of libc library versions that are looked
up when required by user code.
FreeBSD 14.1-RELEASE and later versions require an update to the range
since they bumped up their libc major version, from 6 to 7. This has
the side-effect of guaranteeing at least one failed lookup on modern
Linux systems, where the libc is still at version 6.
With updated FreeBSD support in MicroPython core, now `sys.platform`
properly returns `freebsd`. This required a minor change in the code
deciding whether to look for `.so`, `.dylib`, or `.dll` files, since
`linux` is no longer the default fallback for generic unix systems.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>1 parent 381ac74 commit 547d4fe
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments