I changed ld.so behavior in -current. We are now better aligned with other systems. Still, if you see some libraries not being found at runtime in strange scenarios, do let me know.
If you can confirm reverting the change fixes such breakage, it will be even better: https://marc.info/?l=openbsd-cvs&m=168108367900461 Thanks Greg