www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: [PATCH] Do not expose private libraries nor link flags to clients of libssh2

Re: [PATCH] Do not expose private libraries nor link flags to clients of libssh2

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Mon, 19 May 2014 16:25:52 +0200

mån 2014-05-19 klockan 10:09 +0200 skrev Mikhail Gusarov:
> --- a/libssh2.pc.in
> +++ b/libssh2.pc.in
> @@ -12,6 +12,6 @@ URL: http://www.libssh2.org/
> Description: Library for SSH-based communication
> Version: @LIBSSH2VER@
> Requires.private: @LIBSREQUIRED@
> -Libs: -L${libdir} -lssh2 @LDFLAGS@ @LIBS@
> +Libs: -L${libdir} -lssh2

If there is linker flags or libs that is not needed then those should
perhaps not be there in the first place?

libssh do require a number of other libraries, and you can not omit
those here without causing applications to fail linking.

Regards
Henrik

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-05-19

the libssh2 team