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

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

From: Yang Tse <yangsita_at_gmail.com>
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
BEFORE the AC_PROG_LIBTOOL call in configure.in

-- 
-=[Yang]=-


-------------------------------------------------------------------------
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_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Received on 2007-03-29