update readme, add dist/config.mak
[libc-test] / dist / config.mak
1 # copy to ../config.mak and edit
2
3 # to test the native libc with native cc no config is required
4
5 # to test non-native musl with gcc use
6 #CC = musl-gcc
7
8 # to test non-native musl with installed pcc use
9 #prefix = /path/to/musl
10 #includedir = $(prefix)/include
11 #libdir = $(prefix)/lib
12 #CC = pcc
13 #LIBCC = $(shell pcc -v /dev/null 2>&1 |sed -n 's,/crtbegin.o.*,,;s,.* /,/,p')
14 #CFLAGS  += -nostdinc -ffreestanding -fno-stack-protector -isystem $(includedir)
15 #LDFLAGS += -nostdlib -Wl,-e,_start,-Bstatic $(libdir)/crti.o $(libdir)/crt1.o $(libdir)/crtn.o -L$(libdir) -lc -L$(LIBCC) -l$(CC)
16
17 # required for math tests
18 CFLAGS += -fno-builtin -ffloat-store