From 68229946748e76251e2a0e9669124f8179eef8b3 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 5 Apr 2015 17:08:25 -0400 Subject: nt32: provide stubs of fundamental math functions to allow complication without libgcc. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- musl.lzy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'musl.lzy') diff --git a/musl.lzy b/musl.lzy index b3f0f4e..9152d04 100644 --- a/musl.lzy +++ b/musl.lzy @@ -31,7 +31,8 @@ lz_project_definitions() pe_excluded_symbols="$pe_excluded_symbols,__vm_lock_impl" pe_excluded_symbols="$pe_excluded_symbols,__vm_unlock_impl" - musl_libc_so_ldflags="-shared -e __libc_entry_point -Bsymbolic-functions \ + musl_libc_so_ldflags="-shared -e "$lz_default_underscore"__libc_entry_point \ + -Bsymbolic-functions \ --subsystem windows \ --output-def $lz_build_dir/lib/libc.so.def \ --out-implib $lz_build_dir/lib/libc.lib.a \ @@ -175,7 +176,7 @@ musl_libc_shared() musl_crt # memory functions - lz_cflags_extra="$musl_cflags_shared" + lz_cflags_extra="$musl_cflags_shared $musl_cflags_no_complex" lz_cflags_special="$musl_cflags_memops" lz_src_files="$musl_libc_mem_files" lz_src_dirs=$lz_ignore_src_dirs @@ -248,6 +249,7 @@ musl_libc_shared_no_complex() { lz_link_libgcc= lz_exclude_src_dirs="src/complex" + musl_cflags_no_complex="-DLIBC_NO_COMPLEX" musl_libc_shared } -- cgit v1.2.3