[openib-general] Static linking with libibverbs

Jeff Squyres jsquyres at cisco.com
Wed Nov 1 05:44:07 PST 2006


Do you like large executables?
Do you eschew system-installed libc's?
Were you ever frustrated that linking against libibverbs would  
prevent using "-static"?

Well, now you too can produce 100% statically linked applications  
that use libibverbs!  If you call now, you can take part in this  
exclusive offer from the OpenFabrics Alliance and Open MPI project.   
Hurry, supplies are limited.

First, you need to download and install libibverbs v1.0.4 (which was  
released after OFED v1.1.1, so if you have installed OFED v1.1.1 or  
prior, you will need to manually update your libibverbs).  Prior  
versions of libibverbs will not work with the "-static" option to gcc  
(or whatever the static linking option is for your compiler).

Second, read these FAQ entries on the Open MPI web site:

     http://www.open-mpi.org/faq/?category=mpi-apps#static-mpi-apps
     http://www.open-mpi.org/faq/?category=mpi-apps#static-ofa-mpi-apps

Although these FAQ entries specifically describe linking MPI  
applications statically, the same techniques described also applies  
to general
[non-MPI] ibverbs applications.

-- 
Jeff Squyres
Server Virtualization Business Unit
Cisco Systems





More information about the general mailing list