Subject: Re: Compiling from git

Re: Compiling from git

From: Daniel Stenberg <>
Date: Thu, 15 Mar 2012 22:52:36 +0100 (CET)

On Thu, 15 Mar 2012, Mitchell Hashimoto wrote:

> I'm working on some patches for libssh2 and I'm not entirely comfortable
> with the autotools process. What is the correct way to generate the proper
> files and compile the source directly from git?

I'll let you in on the little trick I sometimes do while developing programs
using my development libssh2 version:

To build:

$ cd /my/source/dir
$ ./buildconf
$ ./configure [options]
$ make -j4

Create a 'lib' dir that is a symbolic link directly to where the libssh2.a
file is:

$ ln -s src/.libs lib

Now, you can build libssh2-using programs with configure and point it with
./configure --prefix to the root of the libssh2 source dir and you won't have
to do 'make install' etc when rebuilding libssh2 for experiments.

That works because --prefix expects a lib directory and an include directory.

Received on 2012-03-15