Mercurial > projects > ldc
comparison runtime/build.sh @ 579:20c065c46b38
Basic support for runtime in shared library.
Needs to be built with runtime/build-sharedlibs.sh and activated manually by
providing -defaultlib=llvmdc-runtime-shared -defaultlib=tango-cc-tango-shared
-defaultlib=tango-gc-basic-shared on llvmdc call at the moment.
To support D shared libraries in non-D code, we need to remove the main() from
libllvmdc-runtime-shared.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 05 Sep 2008 23:02:18 +0200 |
parents | 926a03711ca8 |
children | 6aaa3d3c1183 |
comparison
equal
deleted
inserted
replaced
578:8caa9adce5ae | 579:20c065c46b38 |
---|---|
10 | 10 |
11 # make the runtime | 11 # make the runtime |
12 cp -R lib ../tango | 12 cp -R lib ../tango |
13 cd ../tango/lib | 13 cd ../tango/lib |
14 make -f llvmdc-posix.mak clean | 14 make -f llvmdc-posix.mak clean |
15 make -f llvmdc-posix.mak | 15 make -f llvmdc-posix.mak lib |
16 cd ../.. | 16 cd ../.. |
17 | 17 |
18 # install the runtime | 18 # install the runtime |
19 rm -f lib/libllvmdc-runtime*.a | 19 rm -f lib/libllvmdc-runtime*.a |
20 cp runtime/internal/libllvmdc-runtime*.a lib | 20 cp runtime/internal/libllvmdc-runtime*.a lib |