blob: 737d0c0100fb5ee16f2cc0df665b4f1e7a94eaeb [file] [log] [blame]
--- src/tools/depbuild.cpp.orig 2006-12-27 12:04:05.000000000 +0100
+++ src/tools/depbuild.cpp 2009-02-02 17:24:17.980006252 +0100
@@ -130,7 +130,20 @@
void dependency_calculate_asm(const char *filename)
{
string command = nasm + " " + nflags + " -M " + filename;
- system(command.c_str());
+ FILE *fp = popen(command.c_str(), "r");
+ if (fp)
+ {
+ char line[256];
+ while (fgets(line, sizeof(line), fp)) //Process all lines of output
+ {
+ cout << line;
+ }
+ pclose(fp);
+ }
+ else
+ {
+ cerr << "Failed on: " << filename << "\n";
+ }
}
void dependency_calculate_psr(const char *filename)