mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 12:49:44 +08:00
fdac8bfc1b
* hwloc try and error * hwloc fix build. * format manifest * version stuff * remove supports expression. Copy COPYING from src dir * format manifest * overwrite version * update ci baseline hpx uses _mm_pause which seems to be undefined on arm64 maybe hpx requires a supports field? * switch to version in manifest * version stuff * add maintainer Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * version stuff Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
57 lines
2.2 KiB
Diff
57 lines
2.2 KiB
Diff
diff --git a/configure.ac b/configure.ac
|
|
index 44180d1aa..6bba9c435 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"],
|
|
####################################################################
|
|
|
|
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)
|
|
|
|
# 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
|
|
--- a/hwloc/Makefile.am
|
|
+++ b/hwloc/Makefile.am
|
|
@@ -191,16 +191,15 @@ 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
|
|
all-local: .libs/libhwloc.lib
|
|
-clean-local:
|
|
- $(RM) dolib$(EXEEXT)
|
|
endif HWLOC_HAVE_MS_LIB
|
|
|
|
install-exec-hook:
|