* fixes "~winpthreads changes ~pthread_signal.h" etc. reported by build-pkg mingw-w64 installs dummy headers if winpthreads isn't built * enables libgomp to avoid double-build (see #331) * no change in openmp-validation (still 20 failures - taken with a grain of salt as the batch file test runner isn't a reliable perl substitute) * pthreads virtual package kept for future testingpull/958/head
parent
0ad42f9aa4
commit
05380b49b7
@ -1,41 +0,0 @@
|
||||
# This file is part of MXE.
|
||||
# See index.html for further information.
|
||||
|
||||
PKG := libgomp
|
||||
$(PKG)_IGNORE = $(gcc_IGNORE)
|
||||
$(PKG)_VERSION = $(gcc_VERSION)
|
||||
$(PKG)_CHECKSUM = $(gcc_CHECKSUM)
|
||||
$(PKG)_SUBDIR = $(gcc_SUBDIR)
|
||||
$(PKG)_FILE = $(gcc_FILE)
|
||||
$(PKG)_URL = $(gcc_URL)
|
||||
$(PKG)_URL_2 = $(gcc_URL_2)
|
||||
$(PKG)_DEPS := gcc pthreads
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
echo $(gcc_VERSION)
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
mkdir -p '$(1).build'
|
||||
cd '$(1).build' && '$(1)/libgomp/configure' \
|
||||
$(MXE_CONFIGURE_OPTS) \
|
||||
--prefix='$(PREFIX)' \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--with-gnu-ld \
|
||||
LIBS='-lws2_32' \
|
||||
ac_cv_prog_FC='$(TARGET)-gfortran'
|
||||
$(MAKE) -C '$(1).build' -j '$(JOBS)' install
|
||||
|
||||
# TODO: find a way to fix this in configure stage
|
||||
$(if $(BUILD_SHARED), \
|
||||
mv '$(PREFIX)/bin/'libgomp*.dll '$(PREFIX)/$(TARGET)/bin/'; \
|
||||
cp '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'libgomp.dll.a \
|
||||
'$(PREFIX)/$(TARGET)/lib/'; \
|
||||
cp '$(PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/'libgomp.la \
|
||||
'$(PREFIX)/$(TARGET)/lib/')
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libgomp.exe' \
|
||||
-fopenmp
|
||||
endef
|
@ -1,26 +0,0 @@
|
||||
# This file is part of MXE.
|
||||
# See index.html for further information.
|
||||
|
||||
PKG := winpthreads
|
||||
$(PKG)_IGNORE = $(mingw-w64_IGNORE)
|
||||
$(PKG)_VERSION = $(mingw-w64_VERSION)
|
||||
$(PKG)_CHECKSUM = $(mingw-w64_CHECKSUM)
|
||||
$(PKG)_SUBDIR = $(mingw-w64_SUBDIR)
|
||||
$(PKG)_FILE = $(mingw-w64_FILE)
|
||||
$(PKG)_URL = $(mingw-w64_URL)
|
||||
$(PKG)_DEPS := gcc
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
echo $(mingw-w64_VERSION)
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD_mingw-w64
|
||||
cd '$(1)/mingw-w64-libraries/winpthreads' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS)
|
||||
$(MAKE) -C '$(1)/mingw-w64-libraries/winpthreads' -j '$(JOBS)' install
|
||||
|
||||
$(PTHREADS_TEST)
|
||||
endef
|
||||
|
||||
$(PKG)_BUILD_x86_64-w64-mingw32 = $($(PKG)_BUILD_mingw-w64)
|
||||
$(PKG)_BUILD_i686-w64-mingw32 = $($(PKG)_BUILD_mingw-w64)
|
Loading…
Reference in new issue