diff gen/linker.cpp @ 567:aaba4f7c6d8a

Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times.
author Christian Kamm <kamm incasoftware de>
date Tue, 02 Sep 2008 19:14:25 +0200
parents c23f4cfe4f2b
children 29dc68c949b0
line wrap: on
line diff
--- a/gen/linker.cpp	Sat Aug 30 10:31:04 2008 +0200
+++ b/gen/linker.cpp	Tue Sep 02 19:14:25 2008 +0200
@@ -169,22 +169,6 @@
         args.push_back(p);
     }
 
-    // runtime library
-    // must be linked in last to null terminate the moduleinfo appending list
-    std::string runtime_path(global.params.runtimePath);
-
-    // path seperator can be \ on windows, but we check for /
-#if _WIN32
-    int i=0;
-    while ((i = runtime_path.find("\\", i)) > 0)
-        runtime_path.replace(i, 1, "/");
-#endif
-
-    if (*runtime_path.rbegin() != '/')
-        runtime_path.append("/");
-    runtime_path.append("libtango-base-llvmdc-native.a");
-    args.push_back(runtime_path.c_str());
-
     // print link command?
     if (!global.params.quiet || global.params.verbose)
     {