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
8 # to test non-native musl with installed pcc use
9 #prefix = /path/to/musl
10 #includedir = $(prefix)/include
11 #libdir = $(prefix)/lib
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