[openib-general] Re: [PATCH] uverbs with static libraries

Michael S. Tsirkin mst at mellanox.co.il
Sun Apr 17 06:56:58 PDT 2005


Quoting r. Roland Dreier <roland at topspin.com>:
> Subject: Re: [PATCH] uverbs with static libraries
> 
>     Michael> I'd like to get userspace verbs working with static
>     Michael> libraries.  My motivation is currently enabling our code
>     Michael> coverage tools which only work well with static
>     Michael> libraries, but I expect there to be other uses.
> 
> Looks reasonable.  With this, do you then do --enable-static when
> configuring libmthca or is there anything else required?
> 
>  - R.
> 

You also need the patch below to enable static libraries.
Then when you link you must pass

 -u openib_driver_init -rdynamic

to gcc, to pull in the driver library.
Roland, please let me know whether you plan to apply this and the previous
patch.



Enable static version of libmthca.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: libmthca/configure.in
===================================================================
--- libmthca/configure.in	(revision 2171)
+++ libmthca/configure.in	(working copy)
@@ -6,7 +6,6 @@ AC_CONFIG_SRCDIR([src/mthca.h])
 AC_CONFIG_AUX_DIR(config)
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE(libmthca, 0.9.0)
-AC_DISABLE_STATIC
 AM_PROG_LIBTOOL
 
 dnl Checks for programs
-- 
MST - Michael S. Tsirkin



More information about the general mailing list