aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-04-07 17:39:39 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-04-07 17:39:39 -0700
commitd93fd8156ba2530d5ff12caaf9b0eaf557f60de5 (patch)
tree1f14dcda503ae7ad02be897b0c458abbf699a92a /tools
parentd19741ee04ee2c87af48c22902afdc06c22f4aac (diff)
parenta04fd2a2c6110b5c7f65c1d993a582fb12e505e4 (diff)
Merge pull request #2256 from juj/more_musl1.14.1
More musl.
Diffstat (limited to 'tools')
-rw-r--r--tools/system_libs.py28
1 files changed, 26 insertions, 2 deletions
diff --git a/tools/system_libs.py b/tools/system_libs.py
index ee185a51..50910a8a 100644
--- a/tools/system_libs.py
+++ b/tools/system_libs.py
@@ -28,10 +28,10 @@ def calculate(temp_files, in_temp, stdout, stderr):
o_s = []
prev_cxx = os.environ.get('EMMAKEN_CXX')
if prev_cxx: os.environ['EMMAKEN_CXX'] = ''
- musl_internal_includes = shared.path_from_root('system', 'lib', 'libc', 'musl', 'src', 'internal')
+ musl_internal_includes = ['-I', shared.path_from_root('system', 'lib', 'libc', 'musl', 'src', 'internal'), '-I', shared.path_from_root('system', 'lib', 'libc', 'musl', 'arch', 'js')]
for src in files:
o = in_temp(os.path.basename(src) + '.o')
- execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib', src), '-o', o, '-I', musl_internal_includes] + lib_opts, stdout=stdout, stderr=stderr)
+ execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib', src), '-o', o] + musl_internal_includes + lib_opts, stdout=stdout, stderr=stderr)
o_s.append(o)
if prev_cxx: os.environ['EMMAKEN_CXX'] = prev_cxx
shared.Building.link(o_s, in_temp(lib_filename))
@@ -71,6 +71,8 @@ def calculate(temp_files, in_temp, stdout, stderr):
]],
['stdlib', [
'atof.c',
+ 'atoi.c',
+ 'atol.c',
'strtod.c',
]],
['string', [
@@ -221,22 +223,44 @@ def calculate(temp_files, in_temp, stdout, stderr):
'fputws.c',
]],
['stdlib', [
+ 'atoll.c',
+ 'bsearch.c',
'ecvt.c',
'fcvt.c',
'gcvt.c',
+ 'qsort.c',
'wcstod.c',
'wcstol.c',
]],
['string', [
+ 'bcmp.c',
+ 'bcopy.c',
+ 'bzero.c',
+ 'index.c',
'memccpy.c',
'memmem.c',
'mempcpy.c',
+ 'memchr.c',
'memrchr.c',
+ 'rindex.c',
+ 'stpcpy.c',
'strcasestr.c',
+ 'strchr.c',
'strchrnul.c',
+ 'strcspn.c',
+ 'strdup.c',
'strlcat.c',
'strlcpy.c',
+ 'strncat.c',
+ 'strndup.c',
+ 'strnlen.c',
+ 'strpbrk.c',
+ 'strrchr.c',
'strsep.c',
+ 'strspn.c',
+ 'strstr.c',
+ 'strtok.c',
+ 'strtok_r.c',
'strverscmp.c',
'wcpcpy.c',
'wcpncpy.c',