Page MenuHomeFreeBSD

D42499.diff
No OneTemporary

D42499.diff

diff --git a/share/mk/bsd.crunchgen.mk b/share/mk/bsd.crunchgen.mk
--- a/share/mk/bsd.crunchgen.mk
+++ b/share/mk/bsd.crunchgen.mk
@@ -18,6 +18,7 @@
# CRUNCH_SRCDIR_${P}: base source directory for program ${P}
# CRUNCH_BUILDOPTS_${P}: additional build options for ${P}
# CRUNCH_ALIAS_${P}: additional names to be used for ${P}
+# CRUNCH_KEEP_${P}: additional symbols to keep for ${P}
#
# By default, any name appearing in CRUNCH_PROGS or CRUNCH_ALIAS_${P}
# will be used to generate a hard link to the resulting binary.
@@ -101,6 +102,9 @@
.ifdef CRUNCH_LIBS_${P}
echo special ${P} lib ${CRUNCH_LIBS_${P}} >>${.TARGET}
.endif
+.ifdef CRUNCH_KEEP_${P}
+ echo special ${P} keep ${CRUNCH_KEEP_${P}} >>${.TARGET}
+.endif
.for A in ${CRUNCH_ALIAS_${P}}
echo ln ${P} ${A} >>${.TARGET}
.endfor
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c
--- a/usr.sbin/crunch/crunchgen/crunchgen.c
+++ b/usr.sbin/crunch/crunchgen/crunchgen.c
@@ -1128,7 +1128,7 @@
fprintf(outmk, "\n");
fprintf(outmk, "\tcrunchide -k _crunched_%s_stub ", p->ident);
for (lst = p->keeplist; lst != NULL; lst = lst->next)
- fprintf(outmk, "-k _%s ", lst->str);
+ fprintf(outmk, "-k %s ", lst->str);
fprintf(outmk, "%s.lo\n", p->name);
}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 2:28 PM (22 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14718109
Default Alt Text
D42499.diff (1 KB)

Event Timeline