python-treq: bump to version 16.12.0
[buildroot-gz.git] / package / android-tools / 0005-fix-static-link-zlib.patch
blobdff4df6e7981e3c34f182959a036ed9f16971705
1 Fix static linking of adb/adbd
3 Both adb and adbd use OpenSSL, which indirectly uses zlib. Since
4 adb/adbd also use zlib directly -lz is included in the linker flags,
5 but not at the right position to ensure that static linking works: to
6 make it possible for OpenSSL symbols to see zlib symbols, -lz must
7 appear after -lcrypto.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Index: b/debian/makefiles/adb.mk
12 ===================================================================
13 --- a/debian/makefiles/adb.mk
14 +++ b/debian/makefiles/adb.mk
15 @@ -41,7 +41,7 @@
16 CPPFLAGS+= -I$(SRCDIR)/core/adb
17 CPPFLAGS+= -I$(SRCDIR)/core/include
19 -LIBS+= -lc -lpthread -lz -lcrypto
20 +LIBS+= -lc -lpthread -lcrypto -lz
22 OBJS= $(SRCS:.c=.o)
24 Index: b/debian/makefiles/adbd.mk
25 ===================================================================
26 --- a/debian/makefiles/adbd.mk
27 +++ b/debian/makefiles/adbd.mk
28 @@ -44,7 +44,7 @@
29 CPPFLAGS+= -I$(SRCDIR)/core/adbd
30 CPPFLAGS+= -I$(SRCDIR)/core/include
32 -LIBS+= -lc -lpthread -lz -lcrypto -lcrypt
33 +LIBS+= -lc -lpthread -lcrypto -lz -lcrypt
35 OBJS= $(patsubst %, %.o, $(basename $(SRCS)))