Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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.