You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch

25 lines
559 B

--- src/tools/depbuild.cpp.orig
+++ src/tools/depbuild.cpp
@@ -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)