Fix for compiling with the DeforaOS C compiler
This commit is contained in:
parent
8e53ab7739
commit
108bc179f7
@ -941,10 +941,10 @@ static int _target_source(Configure * configure, FILE * fp, String * target,
|
|||||||
&& string_find(p, "-ansi"))
|
&& string_find(p, "-ansi"))
|
||||||
fputs(" -D _GNU_SOURCE", fp);
|
fputs(" -D _GNU_SOURCE", fp);
|
||||||
}
|
}
|
||||||
fprintf(fp, "%s%s%s%s", " -c ", source, ".",
|
|
||||||
sObjectType[ot]);
|
|
||||||
if(string_find(source, "/"))
|
if(string_find(source, "/"))
|
||||||
fprintf(fp, "%s%s%s", " -o ", source, ".o");
|
fprintf(fp, "%s%s%s", " -o ", source, ".o");
|
||||||
|
fprintf(fp, "%s%s%s%s", " -c ", source, ".",
|
||||||
|
sObjectType[ot]);
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
break;
|
break;
|
||||||
case OT_CXX_SOURCE:
|
case OT_CXX_SOURCE:
|
||||||
@ -961,10 +961,10 @@ static int _target_source(Configure * configure, FILE * fp, String * target,
|
|||||||
"_CXXFLAGS)");
|
"_CXXFLAGS)");
|
||||||
if(p != NULL)
|
if(p != NULL)
|
||||||
fprintf(fp, " %s", p);
|
fprintf(fp, " %s", p);
|
||||||
fprintf(fp, "%s%s%s%s", " -c ", source, ".",
|
|
||||||
sObjectType[ot]);
|
|
||||||
if(string_find(source, "/"))
|
if(string_find(source, "/"))
|
||||||
fprintf(fp, "%s%s%s", " -o ", source, ".o");
|
fprintf(fp, "%s%s%s", " -o ", source, ".o");
|
||||||
|
fprintf(fp, "%s%s%s%s", " -c ", source, ".",
|
||||||
|
sObjectType[ot]);
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
break;
|
break;
|
||||||
case OT_UNKNOWN:
|
case OT_UNKNOWN:
|
||||||
|
Loading…
Reference in New Issue
Block a user