3 lines
533 B
Markdown
3 lines
533 B
Markdown
This is an example for how to statically link Odin's SDL3 vendor library on MacOS.
|
|
|
|
The `sdl3` folder comes directly from Odin's SDL3 vendor directory, with the `sdl3__foreign.odin` updated to point to the packaged libSDL3.a static archive. That archive was generated by pulling the [SDL source code](https://github.com/libsdl-org/SDL/releases/download/release-3.2.28/SDL3-3.2.28.zip) and building it with `cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSDL_STATIC=ON && cmake --build build`, then copying out the static archive. |