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
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
16 CPPFLAGS+= -I$(SRCDIR)/core/adb
17 CPPFLAGS+= -I$(SRCDIR)/core/include
19 -LIBS+= -lc -lpthread -lz -lcrypto
20 +LIBS+= -lc -lpthread -lcrypto -lz
24 Index: b/debian/makefiles/adbd.mk
25 ===================================================================
26 --- a/debian/makefiles/adbd.mk
27 +++ b/debian/makefiles/adbd.mk
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)))