Don\'t assume cpp and gcc are always in /usr/bin... absolute paths removed

SVN revision: 18130
This commit is contained in:
technikolor 2005-10-30 07:42:48 +00:00 committed by technikolor
parent 66f580a1b4
commit a908b18cfc
1 changed files with 2 additions and 2 deletions

View File

@ -653,12 +653,12 @@ compile(void)
strcat(def, " ");
}
}
snprintf(buf, sizeof(buf), "cat %s | /usr/bin/cpp -I%s %s -E -o %s",
snprintf(buf, sizeof(buf), "cat %s | cpp -I%s %s -E -o %s",
file_in, inc, def, tmpn);
ret = system(buf);
if (ret < 0)
{
snprintf(buf, sizeof(buf), "/usr/bin/gcc -I%s %s -E -o %s %s",
snprintf(buf, sizeof(buf), "gcc -I%s %s -E -o %s %s",
inc, def, tmpn, file_in);
ret = system(buf);
}