Mercurial > projects > ldc
comparison dmd/link.c @ 133:44a95ac7368a trunk
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
In particular, assertions has been fixed to include file/line info, and much more!
author | lindquist |
---|---|
date | Mon, 14 Jan 2008 05:11:54 +0100 |
parents | 1700239cab2e |
children | 5acec6b2eef8 |
comparison
equal
deleted
inserted
replaced
132:1700239cab2e | 133:44a95ac7368a |
---|---|
281 | 281 |
282 /* Standard libraries must go after user specified libraries | 282 /* Standard libraries must go after user specified libraries |
283 * passed with -l. | 283 * passed with -l. |
284 */ | 284 */ |
285 | 285 |
286 //argv.push((void *)"-lphobos"); // turns into /usr/lib/libphobos.a | 286 argv.push((void*)"-ltango-base-c-llvmdc"); |
287 argv.push((void *)"-lpthread"); | 287 argv.push((void*)"-lpthread"); |
288 argv.push((void *)"-lm"); | 288 argv.push((void*)"-ldl"); |
289 | 289 argv.push((void*)"-lm"); |
290 std::string corelibpath = global.params.runtimeImppath; | 290 |
291 corelibpath.append("/libtango-base-llvmdc.a"); | |
292 argv.append(global.params.objfiles); | 291 argv.append(global.params.objfiles); |
293 argv.push((void *)corelibpath.c_str()); | 292 |
293 std::string runtime_path(global.params.runtimePath); | |
294 if (*runtime_path.rbegin() != '/') | |
295 runtime_path.append("/"); | |
296 runtime_path.append("libtango-base-llvmdc.a"); | |
297 argv.push((void*)runtime_path.c_str()); | |
294 | 298 |
295 if (!global.params.quiet) | 299 if (!global.params.quiet) |
296 { | 300 { |
297 // Print it | 301 // Print it |
298 for (i = 0; i < argv.dim; i++) | 302 for (i = 0; i < argv.dim; i++) |