[Toybox] [PATCH] md5sum: fix libcrypto build.

enh enh at google.com
Thu Jun 3 14:16:52 PDT 2021


OpenSSL uses the bare names like `MD5` itself. We could add a lot
more #ifdefs instead, but it seems easier to just rename the toybox
constants. I did check, and thanks to -ffunction-sections and
-fdata-sections none of the built-in hash implementations end up in a
libcrypto-using toybox, so it doesn't seem like there would be any other
advantage to more #ifdefs.
---
 toys/lsb/md5sum.c | 36 +++++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 17 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210603/d18d7f70/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-md5sum-fix-libcrypto-build.patch
Type: text/x-patch
Size: 4985 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210603/d18d7f70/attachment-0002.bin>


More information about the Toybox mailing list