diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/targets-to-build-shlib.patch | 2 | ||||
-rw-r--r-- | debian/patches/targets-to-build-static-lib.patch | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/debian/patches/targets-to-build-shlib.patch b/debian/patches/targets-to-build-shlib.patch index 1182c74..8550085 100644 --- a/debian/patches/targets-to-build-shlib.patch +++ b/debian/patches/targets-to-build-shlib.patch @@ -9,7 +9,7 @@ This patch adds targets to build a shared library, instead. 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile -index 2b06881..c438f1a 100644 +index 2b06881..d8cf510 100644 --- a/makefile +++ b/makefile @@ -1,9 +1,24 @@ diff --git a/debian/patches/targets-to-build-static-lib.patch b/debian/patches/targets-to-build-static-lib.patch index 9a8c7ce..0dbfa49 100644 --- a/debian/patches/targets-to-build-static-lib.patch +++ b/debian/patches/targets-to-build-static-lib.patch @@ -7,7 +7,7 @@ Subject: targets to build static lib 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile -index c438f1a..c2b5df1 100644 +index d8cf510..fe7dda1 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,7 @@ SONAME = libzxcvbn.so.0 @@ -24,10 +24,10 @@ index c438f1a..c2b5df1 100644 gcc $(CFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(SONAME) -o $@ $^ -lm +test-statlib: test.c libzxcvbn.a -+ gcc $(CFLAGS) $(LDFLAGS) -static -o $@ test.c -L. -lzxcvbn -lm ++ gcc $(CFLAGS) $(LDFLAGS) -o $@ $^ -lm + +libzxcvbn.a: zxcvbn-inline.o -+ ar rcs $@ $^ ++ ar cvq $@ $^ + test-file: test.c zxcvbn-file.o gcc $(CFLAGS) -DUSE_DICT_FILE -o test-file test.c zxcvbn-file.o -lm |