Date: Sun, 14 Jun 2015 15:40:18 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284382 - head/usr.sbin/crunch/crunchgen Message-ID: <201506141540.t5EFeI94066714@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Sun Jun 14 15:40:17 2015 New Revision: 284382 URL: https://svnweb.freebsd.org/changeset/base/284382 Log: Tell the compiler that -dc and -r are linker flags. Reviewed by: adrian Modified: head/usr.sbin/crunch/crunchgen/crunchgen.c Modified: head/usr.sbin/crunch/crunchgen/crunchgen.c ============================================================================== --- head/usr.sbin/crunch/crunchgen/crunchgen.c Sun Jun 14 14:10:05 2015 (r284381) +++ head/usr.sbin/crunch/crunchgen/crunchgen.c Sun Jun 14 15:40:17 2015 (r284382) @@ -1110,7 +1110,7 @@ prog_makefile_rules(FILE *outmk, prog_t 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506141540.t5EFeI94066714>