diff --git a/packages/openssh/Makefile.in.patch b/packages/openssh/Makefile.in.patch new file mode 100644 index 000000000..f5c1e5ea9 --- /dev/null +++ b/packages/openssh/Makefile.in.patch @@ -0,0 +1,12 @@ +diff -u -r ../openssh-7.9p1/Makefile.in ./Makefile.in +--- ../openssh-7.9p1/Makefile.in 2018-10-17 00:01:20.000000000 +0000 ++++ ./Makefile.in 2018-11-22 23:35:57.866748335 +0000 +@@ -172,7 +172,7 @@ + $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHLIBS) $(LIBS) $(GSSLIBS) + + sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) +- $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) ++ $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -ltermux-auth -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) + + scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o + $(LD) -o $@ scp.o progressmeter.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) diff --git a/packages/openssh/build.sh b/packages/openssh/build.sh index 8029ea3d8..6a4b4b44b 100644 --- a/packages/openssh/build.sh +++ b/packages/openssh/build.sh @@ -51,7 +51,6 @@ termux_step_pre_configure() { CPPFLAGS+=" -DHAVE_ATTRIBUTE__SENTINEL__=1 -DBROKEN_SETRESGID" LD=$CC # Needed to link the binaries LDFLAGS+=" -llog" # liblog for android logging in syslog hack - LDFLAGS+=" -ltermux-auth" # libtermux-auth for password auth } termux_step_post_configure() {