-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,30 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index 44180d1aa..6bba9c435 100644 | ||
index 8af26ec..0d52b00 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -101,10 +101,11 @@ AM_PROG_CC_C_O | ||
m4_version_prereq([2.70], [], [AC_PROG_CC_C99]) | ||
CFLAGS=$CFLAGS_save | ||
|
||
-AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler]) | ||
-AS_IF([test -z "$CC_FOR_BUILD"],[ | ||
- AC_SUBST([CC_FOR_BUILD], [$CC]) | ||
-]) | ||
+# only needed to run/build dolib.exe which can be replaced with a bash script.... | ||
+# AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler]) | ||
+# AS_IF([test -z "$CC_FOR_BUILD"],[ | ||
+# AC_SUBST([CC_FOR_BUILD], [$CC]) | ||
+# ]) | ||
|
||
#################################################################### | ||
# CLI arguments | ||
@@ -132,6 +133,8 @@ AS_IF([test "$enable_embedded_mode" != "yes"], | ||
@@ -127,6 +127,8 @@ AS_IF([test "$enable_embedded_mode" != "yes"], | ||
#################################################################### | ||
|
||
AC_SUBST([libhwloc_so_version]) | ||
+libhwloc_so_version_current_minus_age=`expr [[ $libhwloc_so_version=~ ([[:digit:]]+):[[:digit:]]+:([[:digit:]]+) ]] && real_so_ver=$(expr ${BASH_REMATCH[1]} - ${BASH_REMATCH[2]})` | ||
+AC_SUBST(libhwloc_so_version_current_minus_age) | ||
AC_SUBST([libhwloc_so_name]) | ||
|
||
# Setup the hwloc core | ||
HWLOC_SETUP_CORE([], [], [AC_MSG_ERROR([Cannot build hwloc core])], [1]) | ||
diff --git a/hwloc/Makefile.am b/hwloc/Makefile.am | ||
index 48cc81c5b..5aac67d4f 100644 | ||
index 4b3800a..f96473c 100644 | ||
--- a/hwloc/Makefile.am | ||
+++ b/hwloc/Makefile.am | ||
@@ -191,16 +191,15 @@ if HWLOC_HAVE_WINDOWS | ||
@@ -189,11 +189,10 @@ if HWLOC_HAVE_WINDOWS | ||
|
||
LC_MESSAGES=C | ||
export LC_MESSAGES | ||
-ldflags += -Xlinker --output-def -Xlinker .libs/libhwloc.def | ||
|
||
if HWLOC_HAVE_MS_LIB | ||
-dolib$(EXEEXT): dolib.c | ||
- $(CC_FOR_BUILD) $< -o $@ | ||
-.libs/libhwloc.lib: libhwloc.la dolib$(EXEEXT) | ||
- [ ! -r .libs/libhwloc.def ] || ./dolib$(EXEEXT) "$(HWLOC_MS_LIB)" $(HWLOC_MS_LIB_ARCH) .libs/libhwloc.def $(libhwloc_so_version) .libs/libhwloc.lib | ||
+# dolib$(EXEEXT): dolib.c | ||
+# $(CC_FOR_BUILD) $< -o $@ | ||
+# .libs/libhwloc.lib: libhwloc.la dolib$(EXEEXT) | ||
+# [ ! -r .libs/libhwloc.def ] || ./dolib$(EXEEXT) "$(HWLOC_MS_LIB)" $(HWLOC_MS_LIB_ARCH) .libs/libhwloc.def $(libhwloc_so_version) .libs/libhwloc.lib | ||
+.libs/libhwloc.lib: libhwloc.la | ||
+ [ ! -r .libs/libhwloc.def ] || "$(HWLOC_MS_LIB)" /machine:$(HWLOC_MS_LIB_ARCH) /def:.libs/libhwloc.def /name:libhwloc-$(libhwloc_so_version_current_minus_age) /out:.libs/libhwloc.lib | ||
.libs/libhwloc.lib: libhwloc.la | ||
- [ ! -r .libs/libhwloc.def ] || "$(HWLOC_MS_LIB)" -machine:$(HWLOC_MS_LIB_ARCH) -def:.libs/libhwloc.def -name:libhwloc-$(libhwloc_so_name) -out:.libs/libhwloc.lib | ||
+# [ ! -r .libs/libhwloc.def ] || "$(HWLOC_MS_LIB)" -machine:$(HWLOC_MS_LIB_ARCH) -def:.libs/libhwloc.def -name:libhwloc-$(libhwloc_so_name) -out:.libs/libhwloc.lib | ||
all-local: .libs/libhwloc.lib | ||
-clean-local: | ||
- $(RM) dolib$(EXEEXT) | ||
endif HWLOC_HAVE_MS_LIB | ||
|
||
install-exec-hook: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/utils/lstopo/lstopo.c b/utils/lstopo/lstopo.c | ||
index a946581c3..ecbf64aff 100644 | ||
--- a/utils/lstopo/lstopo.c | ||
+++ b/utils/lstopo/lstopo.c | ||
@@ -58,6 +58,10 @@ | ||
# endif | ||
#endif | ||
|
||
+#if _MSC_VER | ||
+#define STDOUT_FILENO _fileno( stdout ) | ||
+#endif | ||
+ | ||
#ifdef ANDROID | ||
extern void setJNIEnv(); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"name": "hwloc", | ||
"version": "2.5.0", | ||
"port-version": 1, | ||
"version": "2.11.2", | ||
"maintainers": "bgoglin<[email protected]>", | ||
"description": [ | ||
"Portable Hardware Locality (hwloc)", | ||
"The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs." | ||
], | ||
"homepage": "https://github.com/open-mpi/hwloc", | ||
"license": "BSD-2-Clause", | ||
"supports": "!uwp" | ||
} |