new test framework (one main per test)
[libc-test.git] / dist / config.mak
blob8d106933c0a592f481a98dad436761b86277041f
1 # copy to ../config.mak and edit
3 # to test the native libc with native cc no config is required
5 # to test non-native musl with gcc use
6 #CC = musl-gcc
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)
17 # required for math tests
18 CFLAGS += -fno-builtin -ffloat-store