From 7f3a409b6407125829cfe6fab314e532b18c0445 Mon Sep 17 00:00:00 2001 From: wilkie Date: Wed, 6 Feb 2013 04:06:57 -0500 Subject: [PATCH] Creates libc-base for D apps to link to C stdlib. --- embedlibs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/embedlibs.sh b/embedlibs.sh index 85e8347..37af966 100755 --- a/embedlibs.sh +++ b/embedlibs.sh @@ -3,10 +3,14 @@ mkdir -p .tempobjs cd .tempobjs +ar x ../../xomb/user/c/lib/cbindings.a +cp ../local/x86_64-pc-xomb/lib/libc.a ../local/x86_64-pc-xomb/lib/libc-base.a +ar d ../local/x86_64-pc-xomb/lib/libc-base.a crt0.o +ar -rs ../local/x86_64-pc-xomb/lib/libc-base.a *.o + ar x ../../xomb/runtimes/mindrt/drt0.a ar x ../../xomb/runtimes/mindrt/mindrt.a -ar x ../../xomb/user/c/lib/cbindings.a ar -rs ../local/x86_64-pc-xomb/lib/libc.a *.o cd .. -rm -r .tempobjs \ No newline at end of file +rm -r .tempobjs