So $SHLIB_SUFFIX_NAME needs to be set to the correct value. Libtool sets $shrext_cmds to the correct suffix. This variable can contain commands, so it needs to be eval'd like this: eval SHLIB_SUFFIX_NAME= \"$shrext_cmds\". It will also begin with a "." so when $SHLIB_SUFFIX_NAME is used, it mustn't be prefixed with an other ".". The patch below should fix things for all platforms.
The other bug is in tests/Makefile.in. The "AM_LDFLAGS = -no-install" should be omitted, since it tells libtool to not use a wrapper script. This causes simple to try to link to an already installed libssh2, not the one just built. So it either uses the wrong libssh2 or fails to build if libssh2 isn't installed at all.
This patch fixes both issues.
libssh2.patch
Description: Binary data
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel