Skip to content

Commit

Permalink
linking fail due to missing openssl. the workaround is crosscompile o…
Browse files Browse the repository at this point in the history
…penssl-1.0.2

and link the .a lib to adb/ and also symlink openssl/include/openssl into include/

how to compile:
$ RANLIB=aarch64-linux-gnu-ranlib AR=aarch64-linux-gnu-ar CXX=aarch64-linux-gnu-g++ CC=aarch64-linux-gnu-gcc make

how to compile openssl:
$ ./Configure linux-aarch64 --cross-compile-prefix=aarch64-linux-gnu-
$ make
  • Loading branch information
root authored and root committed Nov 10, 2023
1 parent 7c56fbf commit 4e1d9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CFLAGS= $(OPT_CFLAGS) $(LOCAL_CFLAGS) $(LOCAL_INCLUDES)
all: $(LOCAL_MODULE) xdg-adbd

$(LOCAL_MODULE): $(OBJS)
${CXX} -fPIC $(CXXFLAGS) $^ -L ../libcutils/*.o ../base/*.o ../libcrypto_utils/*.o -lpthread -lresolv -lcrypto -lssl -lutil -o $@
${CXX} -fPIC $(CXXFLAGS) $^ -L. -L ../libcutils/*.o ../base/*.o ../libcrypto_utils/*.o -lpthread -lresolv -lcrypto -lssl -lutil -o $@
#g++ -fPIC $(CXXFLAGS) $^ -L ../libcutils/*.o ../base/*.o ../libcrypto_utils/*.o -lpthread -lresolv -lcrypto -lssl -lutil -o $@

xdg-adbd: xdg-adbd.c
Expand Down

0 comments on commit 4e1d9e5

Please sign in to comment.