buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.22k stars 34 forks source link

Search libraries in user-defined directories first #242

Open george-hopkins opened 9 months ago

george-hopkins commented 9 months ago

By rearranging the search path list, user-defined directories are searched first. In addition, we pass "libX.so" (no slashes) to std.DynLib.open to reuse the system-defined load order. "SDL2" will load "/usr/lib/x86_64-linux-gnu/libSDL2.so" on a multi-arch system.