crunchgen: Permit use of alternative linkers.
Submitted by: Pete Chou MFC after: 1 week
This commit is contained in:
parent
d9a1428cab
commit
2ebed5db20
@ -979,6 +979,7 @@ top_makefile_rules(FILE *outmk)
|
||||
{
|
||||
prog_t *p;
|
||||
|
||||
fprintf(outmk, "LD?= ld\n");
|
||||
if ( subtract_strlst(&libs, &libs_so) )
|
||||
fprintf(outmk, "# NOTE: Some LIBS declarations below overridden by LIBS_SO\n");
|
||||
|
||||
@ -1108,7 +1109,7 @@ prog_makefile_rules(FILE *outmk, prog_t *p)
|
||||
fprintf(outmk, " $(%s_LIBS)", p->ident);
|
||||
|
||||
fprintf(outmk, "\n");
|
||||
fprintf(outmk, "\tld -dc -r -o %s.lo %s_stub.o $(%s_OBJPATHS)",
|
||||
fprintf(outmk, "\t$(LD) -dc -r -o %s.lo %s_stub.o $(%s_OBJPATHS)",
|
||||
p->name, p->name, p->ident);
|
||||
if (p->libs)
|
||||
fprintf(outmk, " $(%s_LIBS)", p->ident);
|
||||
|
Loading…
Reference in New Issue
Block a user