|
- Author:
- sean (IP: 17.226.20.26)
- Timestamp:
- 04/30/08 16:59:17 (16 years ago)
- Comment:
Modified library names to reflect the current state of Tango.
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TopicAdvancedConfiguration
v5 |
v6 |
|
14 | 14 | Here is a partial list of compilers and platforms, and the libraries they will link by default: |
---|
15 | 15 | |
---|
16 | | * DMD Win32: phobos.lib |
---|
17 | | * DMD Linux: libphobos.a |
---|
| 16 | * DMD Win32: tango-base-dmd.lib |
---|
| 17 | * DMD Linux: libtango-base-dmd.a |
---|
18 | 18 | * GDC: libgphobos.a |
---|
19 | 19 | |
---|
20 | 20 | [wiki:TopicBuildingTango Manually building Tango] should produce one of the composite libraries mentioned above, plus its three component sub-libraries. Then, rather than publishing the composite library, rename the appropriate compiler runtime library to match the name of the composite library and publish that instead, accompanied by the Tango sub-library and an appropriate garbage collector sub-library. The compiler runtime library should then be linked by default, leaving the other two to be specified manually. To avoid specifying these libraries for every build, the library names may be added to the `DFLAGS` line for DMD or patched into the 'gdmd' script for GDC. |
---|
21 | 21 | |
---|
22 | | For example, assuming a DMD Win32 target, rename lib\compiler\dmd.lib to phobos.lib and copy it over any existing phobos.lib in the library path. Then copy lib\tango.lib and lib\gc\basic.lib to the same location. And optionally edit sc.ini to add tango.lib and basic.lib to the DFLAGS line. If basic.lib is not unique, rename it to something meaningful and change DFLAGS as appropriate. |
---|
| 22 | For example, assuming a DMD Win32 target, copy lib\compiler\tango-rt-dmd.lib to your library directory and set it as the default library instead of tango-base-dmd.lib. Then copy lib\gc\tango-gc-basic.lib and lib\common\tango-cc-tango.lib to the same location. Finally, optionally edit sc.ini to add tango-gc-basic.lib and tango-cc-tango.lib to the DFLAGS line. |
---|
23 | 23 | |
---|
24 | 24 | While this process incurs additional maintenace issues over the default install, it offers one notable advantage: the garbage collector used by an application may be specified at link time. Also, on systems with multiple D compilers, a common Tango and garbage collector may be used, with only multiple compiler runtime libraries in place. |
|
|
|
|
|
Copyright © 2006-2024 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic