diff options
author | tijl <tijl@FreeBSD.org> | 2015-06-14 15:40:17 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2015-06-14 15:40:17 +0000 |
commit | fad51803c5c6740676612f47763b779ee06d938d (patch) | |
tree | a732cad20a07430c26cea0995f9cdaca90d1ddb9 /usr.sbin | |
parent | 1c9277463fcfb21d0d28621797c0f088ca64994c (diff) | |
download | FreeBSD-src-fad51803c5c6740676612f47763b779ee06d938d.zip FreeBSD-src-fad51803c5c6740676612f47763b779ee06d938d.tar.gz |
Tell the compiler that -dc and -r are linker flags.
Reviewed by: adrian
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunchgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c index d5cf5da..076fe90 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.c +++ b/usr.sbin/crunch/crunchgen/crunchgen.c @@ -1110,7 +1110,7 @@ prog_makefile_rules(FILE *outmk, prog_t *p) fprintf(outmk, " $(%s_LIBS)", p->ident); fprintf(outmk, "\n"); - fprintf(outmk, "\t$(CC) -nostdlib -dc -r -o %s.lo %s_stub.o $(%s_OBJPATHS)", + fprintf(outmk, "\t$(CC) -nostdlib -Wl,-dc -Wl,-r -o %s.lo %s_stub.o $(%s_OBJPATHS)", p->name, p->name, p->ident); if (p->libs) fprintf(outmk, " $(%s_LIBS)", p->ident); |