diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-09-24 15:24:17 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-09-24 15:24:17 -0700 |
commit | ad4c07eef615eeac277f6baf4c3e48867a7a57a6 (patch) | |
tree | 155c121dfeda14e6974570d43530a849075816b3 | |
parent | aa538bbdab14cf430398c1bdae0636eff1554b48 (diff) | |
download | zxcvbn-c-ad4c07eef615eeac277f6baf4c3e48867a7a57a6.tar.gz |
references to static lib in README.source
-rw-r--r-- | debian/README.source | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/README.source b/debian/README.source index 60b6ac5..d7c7bbe 100644 --- a/debian/README.source +++ b/debian/README.source @@ -4,27 +4,27 @@ Shared library conversion As explained in the unpatched README.md, upstream intends zxcvbn-c to be embedded in the source trees of projects that require it. For the purposes of this Debian package, though, it is compiled as a shared -library. +library and as a static library. The word lists, *.txt in the source package, may be either (a) compiled to a file zxcvbn.dict, or (b) included in the object compiled from zxcvbn.c (in our case, in - libzxcvbn.so.*). + libzxcvbn.so.* & libzxcvbn.a). This choice is made by means of the USE_DICT_FILE compiler macro. Contrary to what you might expect, method (a) does not permit swapping out zxcvbn.dict for a different file: CRCs for zxcvbn.dict are compiled into the object compiled from zxcvbn.c (in our case, in -libzxcvbn.so.0). +libzxcvbn.so.0 & libzxcvbn.a). -So method (a) is useless when zxcvbn-c is compiled as a shared -library. Further, it complicates usage: a library user must call -ZxcvbnInit() with the path to the immutable zxcvbn.dict, and later -ZxcvbnUninit(). +So method (a) is useless when zxcvbn-c is compiled as a shared or +static library. Further, it complicates usage: a library user must +call ZxcvbnInit() with the path to the immutable zxcvbn.dict, and +later ZxcvbnUninit(). Given the above facts about option (a), I have opted to use option (b) for this Debian package. USE_DICT_FILE is unset. Calls to ZxcvbnInit() and ZxcvbnUninit() are not required, and README.md has been patched accordingly. - -- Sean Whitton <spwhitton@spwhitton.name>, Sat, 24 Sep 2016 14:08:03 -0700 + -- Sean Whitton <spwhitton@spwhitton.name>, Sat, 24 Sep 2016 15:24:12 -0700 |