From 108bc179f73c4c0a9110494033a2d40e212b292c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 2 Mar 2008 13:10:22 +0000 Subject: [PATCH] Fix for compiling with the DeforaOS C compiler --- src/makefile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index df60f7c..a0c71d8 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -941,10 +941,10 @@ static int _target_source(Configure * configure, FILE * fp, String * target, && string_find(p, "-ansi")) fputs(" -D _GNU_SOURCE", fp); } - fprintf(fp, "%s%s%s%s", " -c ", source, ".", - sObjectType[ot]); if(string_find(source, "/")) fprintf(fp, "%s%s%s", " -o ", source, ".o"); + fprintf(fp, "%s%s%s%s", " -c ", source, ".", + sObjectType[ot]); fputc('\n', fp); break; case OT_CXX_SOURCE: @@ -961,10 +961,10 @@ static int _target_source(Configure * configure, FILE * fp, String * target, "_CXXFLAGS)"); if(p != NULL) fprintf(fp, " %s", p); - fprintf(fp, "%s%s%s%s", " -c ", source, ".", - sObjectType[ot]); if(string_find(source, "/")) fprintf(fp, "%s%s%s", " -o ", source, ".o"); + fprintf(fp, "%s%s%s%s", " -c ", source, ".", + sObjectType[ot]); fputc('\n', fp); break; case OT_UNKNOWN: