diff dmd/mars.c @ 679:dc078dd8d2e1

Fix remaining make files. Fix linking order for static libs.
author Christian Kamm <kamm incasoftware de>
date Sat, 11 Oct 2008 21:40:44 +0200
parents 075c1272a01d
children 8526cf626110
line wrap: on
line diff
--- a/dmd/mars.c	Sat Oct 11 21:23:41 2008 +0200
+++ b/dmd/mars.c	Sat Oct 11 21:40:44 2008 +0200
@@ -738,6 +738,11 @@
 	arg = (char *)mem.malloc(64);
 	strcpy(arg, "-ltango-gc-basic");
 	global.params.linkswitches->push(arg);
+	// pass the runtime again to resolve issues
+	// with linking order
+	arg = (char *)mem.malloc(64);
+	strcpy(arg, "-lldc-runtime");
+	global.params.linkswitches->push(arg);
     }
 
     if (global.params.run)