summaryrefslogtreecommitdiffhomepage
path: root/musl.lzy
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-04-25 10:14:19 -0400
committermidipix <writeonce@midipix.org>2015-04-25 10:14:19 -0400
commit5085e91a323072e923f46bad4199e6abd9d12ae7 (patch)
tree1d007a1140fb6049186e0749a41f615060e834ab /musl.lzy
parent0f5685a2ffe65b6c6154f5500a26983852eaf1f3 (diff)
downloadmmglue-5085e91a323072e923f46bad4199e6abd9d12ae7.tar.bz2
mmglue-5085e91a323072e923f46bad4199e6abd9d12ae7.tar.xz
complete/fix support of ctors/dtors and tls.
+ do not build libc.so with -DSHARED for the midipix targets. + provide surrogate init/fini arrays that allow invocation of the ctors/dtors iteration routines. + provide a builtin tls for the first thread. + update __copy_tls to match the layout of the simplified struct __tls. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'musl.lzy')
-rw-r--r--musl.lzy3
1 files changed, 2 insertions, 1 deletions
diff --git a/musl.lzy b/musl.lzy
index 9152d04..1261c5f 100644
--- a/musl.lzy
+++ b/musl.lzy
@@ -19,7 +19,7 @@ lz_project_definitions()
musl_empty_lib_names="m rt pthread crypt util xnet resolv dl"
musl_cflags_crt="-fPIC"
- musl_cflags_shared="-fPIC -DSHARED"
+ musl_cflags_shared="-fPIC"
if [ "$lz_pecoff_winnt"x = yesx ]; then
pe_excluded_symbols="__libc_entry_point"
@@ -39,6 +39,7 @@ lz_project_definitions()
--exclude-symbols=$pe_excluded_symbols"
else
musl_libc_so_ldflags="-shared -e _start -Bsymbolic-functions"
+ musl_cflags_shared="$musl_cflags_shared -DSHARED"
fi
musl_libc_src_dirs="src arch/$lz_arch/src arch/$lz_arch/weak"