Subject: [libssh2] [PATCH] Building static lib on x86_64 linux

[libssh2] [PATCH] Building static lib on x86_64 linux

From: Yang Tse <>
Date: Thu, 29 Mar 2007 12:49:50 +0200

When static libraries are built for AMD64 linux they _must_ be
compiled using PIC, otherwise linkage will fail.

The attached patch is the same solution I've contributed to libcurl,
and which has proven to be efective.

The 'trick' is to set to 'yes' variable 'with_pic' for x86_64 linux


Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash

libssh2-devel mailing list

Received on 2007-03-29