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

Roland Dreier roland at topspin.com
Mon Apr 18 09:11:56 PDT 2005


    Michael> Does this work for you? Is mthca.a created?

I just tried this:

    $ ../libmthca/configure  --enable-static CPPFLAGS=-I$(pwd)/../libibverbs/include --prefix=$HOME/junk
    $ make
    $ make install

and I get this:

    $ tree ~/junk
    /data/home/roland/junk
    `-- lib
        `-- infiniband
            |-- mthca.a
            |-- mthca.la
            `-- mthca.so

so yes, it looks like it works.

    Michael> Put another way - whats the harm in always building the
    Michael> static version as well? Other libraries (e.g. libibverbs)
    Michael> build both static and shared versions by default.

I don't think of libmthca as a library really.  It's a plug in loaded
by libibverbs.  In some specialized circumstances it may be useful to
build it statically but in general it's just unneeded confusion.

 - R.



More information about the general mailing list