[openib-general] Re: [PATCH] uverbs with static libraries
Michael S. Tsirkin
mst at mellanox.co.il
Mon Apr 18 08:24:52 PDT 2005
Quoting r. Roland Dreier <roland at topspin.com>:
> Subject: Re: [PATCH] uverbs with static libraries
>
> Michael> You also need the patch below to enable static libraries.
> Michael> Then when you link you must pass
>
> Michael> -u openib_driver_init -rdynamic
>
> Michael> to gcc, to pull in the driver library.
By the way, any ideas on how to make this step easier for
users of the static library?
> Michael> Roland, please let me know whether you plan to
> Michael> apply this and the previous patch.
>
> I was waiting to see what changes you required to libmthca. However I
> don't really see the point of deleting AC_DISABLE_STATIC -- if someone
> wants a static library then all that's required is passing
> "--enable-static" to the configure script. What am I missing?
Does this work for you? Is mthca.a created?
This does not seem to work for me - static library isnt
created unless I remove the AC_DISABLE_STATIC.
Put another way - whats the harm in always building the
static version as well? Other libraries (e.g. libibverbs)
build both static and shared versions by default.
> I guess I will apply the patch to libibverbs to call openib_driver_init
> if it's linked in directly.
>
> - R.
>
--
MST - Michael S. Tsirkin
More information about the general
mailing list