Use musl libc

This commit is contained in:
Łukasz Magiera 2016-02-09 22:54:52 +01:00
parent 530be4d214
commit 7731fcbe29
3 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# LuPI2 Makefile # LuPI2 Makefile
# Default compiler settings. # Default compiler settings.
CC?=cc CC = musl-gcc
CFLAGS?=-O2 -std=c99 CFLAGS?=-O2 -std=c99
LDFLAGS+= -static LDFLAGS+= -static

View File

@ -6,7 +6,8 @@ intuitive languages. It has only 6 types, very simple syntax, yet supports many
Running Running
----- -----
1. Clone this repository 1. Clone this repository
2. Get `xxd` utility(usually packaged with vim) 2. Get musl libc(with musl-gcc wrapper)
2.5 Get `xxd` utility(usually packaged with vim)
3. Execute `make build` 3. Execute `make build`
4. You will need to put some OS to `root` directory where you run the binary. For now you can get plan9k at http://cloud.magik6k.net/index.php/s/7jPRAU037dzt8Ga/download 4. You will need to put some OS to `root` directory where you run the binary. For now you can get plan9k at http://cloud.magik6k.net/index.php/s/7jPRAU037dzt8Ga/download

View File

@ -17,7 +17,9 @@
#include <ftw.h> #include <ftw.h>
#include <wchar.h> #include <wchar.h>
#include <limits.h> #include <limits.h>
#include <linux/kd.h> /* #include <sys/kd.h> */
#define KIOCSOUND 0x4B2F /* start sound generation (0 for off) */
/* Enable in lupi.h */ /* Enable in lupi.h */
#ifdef LOGGING #ifdef LOGGING