Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Open MPI + HWLOC + Static build issue
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2011-08-03 12:31:15

Le 03/08/2011 18:24, Shamis, Pavel a écrit :
> Hw-loc vanilla works, because static mode does not build the binaries
> in static mode. If you would try to build build hwloc utilities in
> static mode it fails , just like ompi.

I get static binaries on SLES11 with
    ./configure --enable-static --disable-shared LDFLAGS=-static
    make LDFLAGS=-all-static LIBS=-lpthread

$ ldd utils/lstopo
    not a dynamic executable
$ utils/lstopo
Machine (24GB)

No problem with libnuma here, it was disabled during configure
(libpthread is needed for another reason).