2008-07-30 Jürg Billeter <j@bitron.ch>
+ * gobject/valaccodecompiler.vala:
+
+ Fix linking with --as-needed and on Windows,
+ patch by Yaakov Selkowitz, fixes bug 545427
+
+2008-07-30 Jürg Billeter <j@bitron.ch>
+
* vapi/glib-2.0.vapi:
Add GObject.ref_count binding, fixes bug 532584
}
cmdline += " -o " + Shell.quote (output);
}
- cmdline += " " + pkgflags;
- foreach (string cc_option in cc_options) {
- cmdline += " " + Shell.quote (cc_option);
- }
/* make sure include files can be found if -d is used */
if (context.directory != null && context.directory != "") {
cmdline += " " + Shell.quote (file);
}
+ // add libraries after source files to fix linking
+ // with --as-needed and on Windows
+ cmdline += " " + pkgflags;
+ foreach (string cc_option in cc_options) {
+ cmdline += " " + Shell.quote (cc_option);
+ }
+
try {
Process.spawn_command_line_sync (cmdline, null, null, out exit_status);
if (exit_status != 0) {