From fa3d2344849726b350d25cc628d621eff6037dbc Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 14 Dec 2006 15:34:00 +0000 Subject: [PATCH] Moving LDFLAGS to the end of the arguments to circumvent a gcc bug --- src/makefile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index 3aecff4..e1079ed 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -613,11 +613,11 @@ static int _target_binary(Configure * configure, FILE * fp, String * target) return 0; _target_flags(configure, fp, target); fprintf(fp, "\n%s%s%s%s", target, ": $(", target, "_OBJS)\n"); - fprintf(fp, "%s", "\t$(CC) $(LDFLAGSF)"); + fprintf(fp, "%s%s%s%s%s", "\t$(CC) -o ", target, " $(", target, "_OBJS)" + " $(LDFLAGSF) $(LDFLAGS)"); if((p = config_get(configure->config, target, "ldflags")) != NULL) fprintf(fp, " %s", p); - fprintf(fp, "%s%s%s%s%s", " $(LDFLAGS) -o ", target, " $(", target, - "_OBJS)\n"); + fputc('\n', fp); return 0; }