[TOOLCHAIN] Making musl portable

This commit is contained in:
2017-02-09 19:47:07 +01:00
parent a7d2b24a79
commit 8d1e693884
10 changed files with 207 additions and 6 deletions

View File

@@ -8,8 +8,12 @@ endif
SHELL := bash
CC=$(TARGET)-gcc
AR=$(TARGET)-ar
LD=$(TARGET)-ld
FLAGS_TO_PASS:= \
CC=$(CC)
CC=$(CC) \
AR=$(AR) \
LD=$(LD)
all: kernel libc init
@@ -24,6 +28,7 @@ libc:
ifeq ($(shell make -sqC libc || echo 1), 1)
@(. util/helpers.sh; print_info "Building c library")
$(MAKE) -C libc install $(FLAGS_TO_PASS)
$(MAKE) $(MAKECMDGOALS)
endif
init: