Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102906950
D42499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D42499.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D42499: crunchgen: make special "keep" more useful, break it out
Attached
Detach File
Event Timeline
Log In to Comment