git: crunchgen(1): Add "linkopts" to specify linker options

Aaron LI aly at
Wed Jul 4 02:50:49 PDT 2018

commit bd01e1de2c165bd5fb9ac8684bec59636ca5e523
Author: Aaron LI <aly at>
Date:   Wed Jun 13 09:42:47 2018 +0800

    crunchgen(1): Add "linkopts" to specify linker options
    Currently, the link options (e.g., library search directories) are
    appended to the "libs" directive.  Moreover, crunchgen discards
    duplicates in such string lists.
    For example, "-L /lib -L /usr/lib" becomes "-L /lib /usr/lib".
    Add the "linkopts" directive to record the options for linking the
    final crunched binary.  This makes the "libs" directive cleaner,
    and helps crunchgen to detect duplicates between "libs" and "libs_so".
    Update the crunchgen.1 man page.
    Update mk/ against the new "linkopts" directive.
    Clean up crunchgen.c a bit.

Summary of changes:
 share/mk/            |  6 +++-
 usr.bin/crunch/crunchgen/crunchgen.1 | 24 ++++++---------
 usr.bin/crunch/crunchgen/crunchgen.c | 60 +++++++++++++++++++++++-------------
 3 files changed, 53 insertions(+), 37 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list