|
nsz |
b36267 |
# copy to ../config.mak and edit
|
|
nsz |
b36267 |
|
|
nsz |
b36267 |
# to test the native libc with native cc no config is required
|
|
nsz |
b36267 |
|
|
nsz |
b36267 |
# to test non-native musl with gcc use
|
|
nsz |
b36267 |
#CC = musl-gcc
|
|
nsz |
b36267 |
|
|
nsz |
b36267 |
# to test non-native musl with installed pcc use
|
|
nsz |
b36267 |
#prefix = /path/to/musl
|
|
nsz |
b36267 |
#includedir = $(prefix)/include
|
|
nsz |
b36267 |
#libdir = $(prefix)/lib
|
|
nsz |
b36267 |
#CC = pcc
|
|
nsz |
b36267 |
#LIBCC = $(shell pcc -v /dev/null 2>&1 |sed -n 's,/crtbegin.o.*,,;s,.* /,/,p')
|
|
nsz |
b36267 |
#CFLAGS += -nostdinc -ffreestanding -fno-stack-protector -isystem $(includedir)
|
|
nsz |
b36267 |
#LDFLAGS += -nostdlib -Wl,-e,_start,-Bstatic $(libdir)/crti.o $(libdir)/crt1.o $(libdir)/crtn.o -L$(libdir) -lc -L$(LIBCC) -l$(CC)
|
|
nsz |
b36267 |
|
|
nsz |
b36267 |
# required for math tests
|
|
nsz |
b36267 |
CFLAGS += -fno-builtin -ffloat-store
|