Raylib Binaries Swap

I’ve been messing around with Odin in an attempt to learn the language for a few days now, I stumbled upon a case where I need to enable the FLAC file format support in Raylib.

I already have the compiled binary and I know I should swap it in vendor/raylib/linux but I’d prefer not modify that folder and instead use my custom binary that I can bundle in the project directly rather than having to worry about moving it when I swap machines while traveling or sending it to a friend.

So far, -collection seems the best way to do this by just copying the directory in my project there and replacing the binary for the targets I care about.

Thanks in advance!

I recommended to someone else this, but not sure if this is how everyone else does it. Let me know if this works for you.

//	add remove custom foreign imports here
//	with no base path, should be found in root of current folder
foreign import lib {
	"libraygui.a",
	"libraygui.so",
	"libraylib.a",
	"libraylib.so",
	"libraylib.so.550",
}

//	run command ldd to check paths used
ldd <executable>
1 Like

This worked perfectly thanks alot!