mirror of
https://github.com/libsm64/libsm64.git
synced 2025-01-22 15:43:11 -05:00
Add flag to link musl instead of glibc
This commit is contained in:
parent
82e53bef23
commit
fad2570b98
2 changed files with 8 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -1,6 +1,10 @@
|
|||
default: lib
|
||||
|
||||
CC := cc
|
||||
ifdef LIBSM64_MUSL
|
||||
CC := musl-gcc
|
||||
else
|
||||
CC := cc
|
||||
endif
|
||||
CFLAGS := -g -Wall -fPIC -DSM64_LIB_EXPORT
|
||||
LDFLAGS := -lm -shared
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ which makes use of this library must ask the user to provide a ROM for asset ext
|
|||
|
||||
- Ensure python3 is installed.
|
||||
- Ensure the SDL2 and GLEW libraries are installed if you're building the test program (on Ubuntu: libsdl2-dev, libglew-dev)
|
||||
- Run `make` to build
|
||||
- Run `make` to build. If you want to link musl libc instead of glibc run `LIBSM64_MUSL=1 make` instead.
|
||||
- To run the test program you'll need a SM64 US ROM in the root of the repository with the name `baserom.us.z64`.
|
||||
|
||||
## Building on Windows (test program not supported)
|
||||
|
|
Loading…
Reference in a new issue