aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/patches/targets-to-build-static-lib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/targets-to-build-static-lib.patch')
-rw-r--r--debian/patches/targets-to-build-static-lib.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/debian/patches/targets-to-build-static-lib.patch b/debian/patches/targets-to-build-static-lib.patch
index 35da165..d55e573 100644
--- a/debian/patches/targets-to-build-static-lib.patch
+++ b/debian/patches/targets-to-build-static-lib.patch
@@ -11,7 +11,7 @@ Forwarded: https://github.com/tsyrogit/zxcvbn-c/pull/8
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/makefile b/makefile
-index d74b139..b44b6e6 100644
+index 143818b..adf3c9b 100644
--- a/makefile
+++ b/makefile
@@ -11,7 +11,7 @@ SONAME = libzxcvbn.so.0
@@ -23,7 +23,7 @@ index d74b139..b44b6e6 100644
test-shlib: test.c $(TARGET_LIB)
if [ ! -e libzxcvbn.so ]; then ln -s $(TARGET_LIB) libzxcvbn.so; fi
-@@ -21,6 +21,12 @@ $(TARGET_LIB): zxcvbn-inline.o
+@@ -21,6 +21,12 @@ $(TARGET_LIB): zxcvbn-inline-pic.o
gcc $(CFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(SONAME) -o $@ $^ -lm
if [ ! -e $(SONAME) ]; then ln -s $(TARGET_LIB) $(SONAME); fi
@@ -36,7 +36,7 @@ index d74b139..b44b6e6 100644
test-file: test.c zxcvbn-file.o
gcc $(CFLAGS) -DUSE_DICT_FILE -o test-file test.c zxcvbn-file.o -lm
-@@ -58,13 +64,15 @@ zxcvbn-c++file.o: zxcvbn.c dict-crc.h zxcvbn.h
+@@ -61,13 +67,15 @@ zxcvbn-c++file.o: zxcvbn.c dict-crc.h zxcvbn.h
if [ ! -e zxcvbn.cpp ]; then ln -s zxcvbn.c zxcvbn.cpp; fi
g++ $(CPPFLAGS) -DUSE_DICT_FILE -c -o zxcvbn-c++file.o zxcvbn.cpp
@@ -53,8 +53,8 @@ index d74b139..b44b6e6 100644
@echo Testing C++ build, dictionary from file
./test-c++file -t testcases.txt
@echo Testing C++ build, dictionary in executable
-@@ -76,4 +84,4 @@ clean:
- rm -f test-inline zxcvbn-inline.o test-c++inline zxcvbn-c++inline.o
+@@ -79,4 +87,4 @@ clean:
+ rm -f test-inline zxcvbn-inline.o zxcvbn-inline-pic.o test-c++inline zxcvbn-c++inline.o
rm -f dict-*.h zxcvbn.dict zxcvbn.cpp test.cpp
rm -f dictgen
- rm -f ${TARGET_LIB} ${SONAME} libzxcvbn.so test-shlib