2016-12-29 23:23:08 +00:00
|
|
|
modules += musl
|
|
|
|
|
|
|
|
musl_version := 1.1.15
|
|
|
|
musl_dir := musl-$(musl_version)
|
|
|
|
musl_tar := musl-$(musl_version).tar.gz
|
|
|
|
musl_url := https://www.musl-libc.org/releases/$(musl_tar)
|
|
|
|
musl_hash := 97e447c7ee2a7f613186ec54a93054fe15469fe34d7d323080f7ef38f5ecb0fa
|
|
|
|
|
|
|
|
musl_output := $(INSTALL)/bin/musl-gcc
|
|
|
|
|
2017-01-04 15:31:27 +00:00
|
|
|
#
|
2017-01-04 21:39:10 +00:00
|
|
|
# Note that for syslibdir to be /lib the install will fail.
|
|
|
|
# this is unfortunate since it prevents the binaries from running
|
|
|
|
# and requires that we treat the rest of the build as a cross compile.
|
2017-01-04 15:31:27 +00:00
|
|
|
#
|
2017-01-04 21:39:10 +00:00
|
|
|
# That works, with some hacks...
|
2017-01-04 15:31:27 +00:00
|
|
|
#
|
2016-12-29 23:23:08 +00:00
|
|
|
musl_configure := ./configure \
|
|
|
|
--prefix="$(INSTALL)" \
|
2017-01-04 15:31:27 +00:00
|
|
|
--syslibdir="/lib" \
|
2016-12-29 23:23:08 +00:00
|
|
|
|
|
|
|
musl_target := -j 8 install
|
|
|
|
|
|
|
|
musl_depends := kernel-headers
|