From 7731fcbe29c970a508b721e08ac34e0d3281122e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 9 Feb 2016 22:54:52 +0100 Subject: [PATCH] Use musl libc --- Makefile | 2 +- README.md | 3 ++- src/c/lnative.c | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dc1a432..f834b79 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # LuPI2 Makefile # Default compiler settings. -CC?=cc +CC = musl-gcc CFLAGS?=-O2 -std=c99 LDFLAGS+= -static diff --git a/README.md b/README.md index 3918434..9f577c3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ intuitive languages. It has only 6 types, very simple syntax, yet supports many Running ----- 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` 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 diff --git a/src/c/lnative.c b/src/c/lnative.c index ce428d8..21fddc9 100644 --- a/src/c/lnative.c +++ b/src/c/lnative.c @@ -17,7 +17,9 @@ #include #include #include -#include +/* #include */ + +#define KIOCSOUND 0x4B2F /* start sound generation (0 for off) */ /* Enable in lupi.h */ #ifdef LOGGING