git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git build failure with libssl (OpenSSL) in custom directory
@ 2010-11-18 17:37 Lars Buitinck
  2010-11-18 17:49 ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Buitinck @ 2010-11-18 17:37 UTC (permalink / raw)
  To: git

Hi all,

I've built Git on a Debian Linux box where I don't have root rights. I
first built OpenSSL 1.0.0b and Curl successfully, installing both in
$HOME/apps. I tried to do the same for Git, using

  CPPFLAGS=-I$HOME/apps/include LDFLAGS=-L$HOME/apps/lib make
prefix=$HOME/apps all doc info

but the build failed with the error

      LINK git-fast-import
  /usr/bin/ld: cannot find -lcrypto
  collect2: ld returned 1 exit status
  make: *** [git-fast-import] Error 1

I checked the Makefile, and found

  # CFLAGS and LDFLAGS are for the users to override from the command line.

  CFLAGS = -g -O2 -Wall
  LDFLAGS =

I'm not a Makefile expert, but it seems to me that the last line
contradicts the comment. In any case, changing it to

  LDFLAGS = -L$(HOME)/apps/lib -lssl -lcrypto -ldl

worked, but only after also building and installing a shared library
version of OpenSSL.

I've got a working Git now, but I thought I'd let you know. I haven't
checked out the development version yet.

Regards,
Lars


PS.: I'm not a member of this list, but git-scm.com suggested I send
my question to you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-18 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 17:37 git build failure with libssl (OpenSSL) in custom directory Lars Buitinck
2010-11-18 17:49 ` Jonathan Nieder
2010-11-18 18:04   ` Lars Buitinck
2010-11-18 18:24     ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).