Browse Source

Use musl libc

libevent
Łukasz Magiera 7 years ago
parent
commit
7731fcbe29
  1. 2
      Makefile
  2. 3
      README.md
  3. 4
      src/c/lnative.c

2
Makefile

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

3
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

4
src/c/lnative.c

@ -17,7 +17,9 @@
#include <ftw.h>
#include <wchar.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 */
#ifdef LOGGING

Loading…
Cancel
Save