diff options
author | midipix <writeonce@midipix.org> | 2015-04-25 10:14:19 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-04-25 10:14:19 -0400 |
commit | 5085e91a323072e923f46bad4199e6abd9d12ae7 (patch) | |
tree | 1d007a1140fb6049186e0749a41f615060e834ab /musl.lzy | |
parent | 0f5685a2ffe65b6c6154f5500a26983852eaf1f3 (diff) | |
download | mmglue-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.lzy | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |