LDFLAGS are now set as target_LDFLAGS and usable from the command line
This commit is contained in:
parent
f226845df4
commit
d46c1d5e52
@ -726,10 +726,8 @@ static int _target_binary(Configure * configure, FILE * fp,
|
|||||||
/* FIXME change commas to spaces */
|
/* FIXME change commas to spaces */
|
||||||
if((p = config_get(configure->config, target, "depends")) != NULL)
|
if((p = config_get(configure->config, target, "depends")) != NULL)
|
||||||
fprintf(fp, " %s", p);
|
fprintf(fp, " %s", p);
|
||||||
fprintf(fp, "%s%s%s%s%s", "\n\t$(CC) -o ", target, " $(", target,
|
fprintf(fp, "%s%s%s%s%s%s%s", "\n\t$(CC) -o ", target, " $(", target,
|
||||||
"_OBJS) $(LDFLAGSF) $(LDFLAGS)");
|
"_OBJS) $(", target, "_LDFLAGS)");
|
||||||
if((p = config_get(configure->config, target, "ldflags")) != NULL)
|
|
||||||
fprintf(fp, " %s", p);
|
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -822,6 +820,10 @@ static void _flags_c(Configure * configure, FILE * fp, String const * target)
|
|||||||
fprintf(fp, "%s", " -D _GNU_SOURCE");
|
fprintf(fp, "%s", " -D _GNU_SOURCE");
|
||||||
}
|
}
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
|
fprintf(fp, "%s%s", target, "_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)");
|
||||||
|
if((p = config_get(configure->config, target, "ldflags")) != NULL)
|
||||||
|
fprintf(fp, " %s", p);
|
||||||
|
fputc('\n', fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _flags_cxx(Configure * configure, FILE * fp, String const * target)
|
static void _flags_cxx(Configure * configure, FILE * fp, String const * target)
|
||||||
|
Loading…
Reference in New Issue
Block a user