2017-03-31 15:18:46 +00:00
|
|
|
modules-y += musl
|
2016-12-29 23:23:08 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-03-20 21:52:54 +00:00
|
|
|
musl_output := ../../install/bin/musl-gcc
|
2016-12-29 23:23:08 +00:00
|
|
|
|
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" \
|
2017-01-27 22:55:44 +00:00
|
|
|
--enable-gcc-wrapper \
|
|
|
|
--enable-shared \
|
2017-01-28 18:14:48 +00:00
|
|
|
CC=$(pwd)/crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-gcc
|
2017-01-27 22:55:44 +00:00
|
|
|
|
2017-03-29 19:15:03 +00:00
|
|
|
musl_libraries := \
|
|
|
|
lib/libc.so \
|
2017-01-27 22:55:44 +00:00
|
|
|
|
2016-12-29 23:23:08 +00:00
|
|
|
|
2017-03-21 18:29:07 +00:00
|
|
|
musl_target := $(MAKE_JOBS) install
|
2017-01-27 22:55:44 +00:00
|
|
|
#musl_target := install
|
2016-12-29 23:23:08 +00:00
|
|
|
|
2017-01-31 17:45:42 +00:00
|
|
|
musl_depends := kernel-headers musl-cross
|