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: Jeff Squyres (jsquyres_at_[hidden])
Date: 2011-08-05 11:14:11

On Aug 5, 2011, at 5:55 AM, Brice Goglin wrote:

>> Libtool's -all-static flag probably resolves to some gcc flag(s), right? Can you just pass those in via CFLAGS / LDFLAGS to configure and then not pass anything in via make?
> I only see an additional -static flag on the final program-link gcc
> command-line when -all-static is given to libtool. But if you pass
> LDFLAGS=-static to configure, it's interpreted by libtool and gcc
> doesn't get a -static when linking programs.

Well, that's certainly yucky. As a *guess*, this sounds like this is an artifact of Libtool not having a distinct namespace for its CLI arguments (i.e., Libtool assuming that "-static" is intended as a Libtool argument, not a compiler/linker argument).

Jeff Squyres
For corporate legal information go to: