commit bd01e1de2c165bd5fb9ac8684bec59636ca5e523 Author: Aaron LI <a...@aaronly.me> 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/bsd.crunchgen.mk against the new "linkopts" directive. Clean up crunchgen.c a bit. Summary of changes: share/mk/bsd.crunchgen.mk | 6 +++- usr.bin/crunch/crunchgen/crunchgen.1 | 24 ++++++--------- usr.bin/crunch/crunchgen/crunchgen.c | 60 +++++++++++++++++++++++------------- 3 files changed, 53 insertions(+), 37 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bd01e1de2c165bd5fb9ac8684bec59636ca5e523 -- DragonFly BSD source repository