Subject: [libssh2] linking statically on AIX

[libssh2] linking statically on AIX

From: Michael Augustin <maugustin_at_gmx.net>
Date: Mon, 23 Jul 2007 13:04:52 +0200

Hi,

I compiled libssh2-0.14 (CVS-Snapshot from 2007-03-27) for Linux, AIX and
HP-UX, with the configure-flag --enable-static. When I link my programm with

cc -o sftptest sftptest.o /home/mica/mylibs/aix52/lib/libssh.a \
/home/mica/mylibs/aix52/lib/libz.a /home/mica/mylibs/aix52/lib/libssl.a \
/home/mica/mylibs/aix52/lib/libcrypto.a -lm

ldd shows that libssh2 is dynamically referenced - all other libs were
statically linked in the executable.

#> ldd sftptest
sftptest needs:
         /usr/lib/libc.a(shr.o)
         /home/mica/mylibs/aix52/lib/libssh2.a(libssh2.so.1)
         /unix
         /usr/lib/libcrypt.a(shr.o)

The same linker call works on Linux and HP-UX and create a executable with all
my libraries statically linked in.

What goes wrong on AIX?

-- 
Regards.
Michael
------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-07-23