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 */
|
||||
if((p = config_get(configure->config, target, "depends")) != NULL)
|
||||
fprintf(fp, " %s", p);
|
||||
fprintf(fp, "%s%s%s%s%s", "\n\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%s%s", "\n\t$(CC) -o ", target, " $(", target,
|
||||
"_OBJS) $(", target, "_LDFLAGS)");
|
||||
fputc('\n', fp);
|
||||
return 0;
|
||||
}
|
||||
@ -822,6 +820,10 @@ static void _flags_c(Configure * configure, FILE * fp, String const * target)
|
||||
fprintf(fp, "%s", " -D _GNU_SOURCE");
|
||||
}
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user