Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] How to build hwloc static to link into a shared lib on Linux
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2014-01-18 03:14:52

Erik Schnetter, le Sat 18 Jan 2014 07:29:37 +0100, a écrit :
> You probably need to set CFLAGS in addition to CXXFLAGS.

Yes, CXXFLAGS is for C++ files. hwloc doesn't have any :)
It's CFLAGS which is for C.

That being said, I wonder the gain you will have: all the probing
functions will still get pulled in, and for Linux that'll be the most
part of hwloc. Be sure to explicitly disable PCI and such at configure
time to at least avoid including these probing functions.