aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2016-09-24 15:32:54 -0700
committerSean Whitton <spwhitton@spwhitton.name>2016-09-24 15:32:54 -0700
commite015baabd49e3eba7bb0516564d48fe143f8abcb (patch)
tree42876c4586b7ba8dfab33b15f3f55f8e77f1e21e /debian
parent238d0138abfaf64fc82f3f087590602031b4f9f5 (diff)
downloadzxcvbn-c-e015baabd49e3eba7bb0516564d48fe143f8abcb.tar.gz
fix order of -l options
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/targets-to-build-shlib.patch2
-rw-r--r--debian/patches/targets-to-build-static-lib.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/patches/targets-to-build-shlib.patch b/debian/patches/targets-to-build-shlib.patch
index f5951bf..1182c74 100644
--- a/debian/patches/targets-to-build-shlib.patch
+++ b/debian/patches/targets-to-build-shlib.patch
@@ -31,7 +31,7 @@ index 2b06881..c438f1a 100644
+
+test-shlib: test.c $(TARGET_LIB)
+ if [ ! -e libzxcvbn.so ]; then ln -s $(TARGET_LIB) libzxcvbn.so; fi
-+ gcc $(CFLAGS) -o $@ test.c -L. -lm -lzxcvbn
++ gcc $(CFLAGS) -o $@ test.c -L. -lzxcvbn -lm
+
+$(TARGET_LIB): zxcvbn-inline.o
+ gcc $(CFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,$(SONAME) -o $@ $^ -lm
diff --git a/debian/patches/targets-to-build-static-lib.patch b/debian/patches/targets-to-build-static-lib.patch
index 5f63401..9a8c7ce 100644
--- a/debian/patches/targets-to-build-static-lib.patch
+++ b/debian/patches/targets-to-build-static-lib.patch
@@ -24,7 +24,7 @@ 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. -lm -lzxcvbn
++ gcc $(CFLAGS) $(LDFLAGS) -static -o $@ test.c -L. -lzxcvbn -lm
+
+libzxcvbn.a: zxcvbn-inline.o
+ ar rcs $@ $^