On 13/04/2016 11:33, Brice Goglin wrote:
The Hardware Locality (hwloc) team is pleased to announce the first
release candidate of v1.11.3.

   http://www.open-mpi.org/projects/hwloc/

v1.11.3 addresses all known bugs in the v1.11 series. It also brings
many small improvements (those that shouldn't wait until the future 2.0
release is ready).


Hi Brice,
attached patches used for cygwin build

hwloc-1.11.3rc1-1.src.patch
to properly use gethostname on cygwin system

hwloc-pkconfig.patch
to properly install pkconfig on cygwin.
For a general usage it should be re-formulated, but I have not
found a obvious way.

Regards
Marco
--- origsrc/hwloc-1.11.3rc1/utils/lstopo/lstopo-draw.c  2016-04-13 
09:10:40.000000000 +0200
+++ src/hwloc-1.11.3rc1/utils/lstopo/lstopo-draw.c      2016-04-16 
23:29:54.402138800 +0200
@@ -1239,7 +1239,7 @@ fig(hwloc_topology_t topology, struct dr
       /* Display the hostname, but only if we're showing *this*
          system */
     if (hwloc_topology_is_thissystem(topology)) {
-#ifdef HWLOC_WIN_SYS
+#if defined(HWLOC_WIN_SYS) && !defined(__CYGWIN__)
       GetComputerName(hostname, &hostname_size);
 #else
       gethostname(hostname, hostname_size);
--- origsrc/hwloc-1.11.2/Makefile.am    2015-06-02 11:12:40.000000000 +0200
+++ Makefile.am 2016-04-12 21:54:05.390102200 +0200
@@ -21,11 +21,9 @@ DIST_SUBDIRS = $(SUBDIRS)

 # Only install the pkg file if we're building in standalone mode (and not on 
Windows)
 if HWLOC_BUILD_STANDALONE
-if !HWLOC_HAVE_WINDOWS
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = hwloc.pc
 endif
-endif

 # Only install the valgrind suppressions file if we're building in standalone 
mode
 if HWLOC_BUILD_STANDALONE

Reply via email to