1makefiles: use pkgconf to get libs deps 2 3LIBS lists library dependencies without taking into account static linking 4that need ordered listing and more libraries listed since differently from 5shared linking dependency is not transparent(i.e. -lcrypto could need 6-latomic etc.). 7 8Replace -lcrypto with `pkg-config --libs libcrypto` command to be sure all 9needed libraries are listed during linking. 10 11Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> 12--- 13diff -urpN android-tools-4.2.2+git20130218.orig/debian/makefiles/adbd.mk android-tools-4.2.2+git20130218/debian/makefiles/adbd.mk 14--- android-tools-4.2.2+git20130218.orig/debian/makefiles/adbd.mk 2019-04-08 16:05:02.967710428 +0200 15+++ android-tools-4.2.2+git20130218/debian/makefiles/adbd.mk 2019-04-08 16:30:42.463084426 +0200 16@@ -44,7 +44,7 @@ CPPFLAGS+= -DADBD_NON_ANDROID 17 CPPFLAGS+= -I$(SRCDIR)/core/adbd 18 CPPFLAGS+= -I$(SRCDIR)/core/include 19 20-LIBS+= -lc -lpthread -lz -lcrypto -lcrypt 21+LIBS+= -lc -lpthread -lz `pkg-config --libs libcrypto` -lcrypt 22 23 OBJS= $(patsubst %, %.o, $(basename $(SRCS))) 24 25diff -urpN android-tools-4.2.2+git20130218.orig/debian/makefiles/adb.mk android-tools-4.2.2+git20130218/debian/makefiles/adb.mk 26--- android-tools-4.2.2+git20130218.orig/debian/makefiles/adb.mk 2019-04-08 16:05:02.959701400 +0200 27+++ android-tools-4.2.2+git20130218/debian/makefiles/adb.mk 2019-04-08 16:31:06.529426250 +0200 28@@ -41,7 +41,7 @@ CPPFLAGS+= -DHAVE_TERMIO_H 29 CPPFLAGS+= -I$(SRCDIR)/core/adb 30 CPPFLAGS+= -I$(SRCDIR)/core/include 31 32-LIBS+= -lc -lpthread -lz -lcrypto 33+LIBS+= -lc -lpthread -lz `pkg-config --libs libcrypto` 34 35 OBJS= $(SRCS:.c=.o) 36