File tmate-1.8.10-system_libs.patch of Package tmate

diff -Nurp tmate-1.8.10-orig/Makefile.am tmate-1.8.10/Makefile.am
--- tmate-1.8.10-orig/Makefile.am	2014-10-31 04:30:36.000000000 +0000
+++ tmate-1.8.10/Makefile.am	2015-11-29 09:18:43.422593415 +0000
@@ -22,7 +22,6 @@ CFLAGS += -D_GNU_SOURCE
 endif
 
 CFLAGS += -Wno-unused-parameter -Wno-unused-variable
-CFLAGS += -Ilibssh/include/ -Imsgpack/src
 CFLAGS += -rdynamic # for stack traces
 
 # Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
@@ -243,17 +242,5 @@ nodist_tmate_SOURCES += compat/b64_ntop.
 endif
 
 tmate_LDADD = \
-	libssh/build/src/libssh.a \
-	msgpack/src/.libs/libmsgpackc.a
-
-*.c: $(tmate_LDADD)
-
-libssh/build/src/libssh.a:
-	cd libssh/build; ([ -f Makefile ] || cmake .. -DWITH_SFTP=OFF -DWITH_SERVER=OFF -DWITH_PCAP=OFF -DWITH_STATIC_LIB=ON -DWITH_GSSAPI=OFF)
-	+make -C libssh/build ssh_static
-
-msgpack/src/.libs/libmsgpackc.a:
-	cd msgpack; ([ -f Makefile ] || (./bootstrap && ./configure))
-	+make -C msgpack/src libmsgpackc.la
-
-.PHONY: libssh/build/src/libssh.a msgpack/src/.libs/libmsgpackc.a
+	-lssh \
+	-lmsgpackc