summaryrefslogtreecommitdiffstats
path: root/src/mpfr.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpfr.mk')
-rw-r--r--src/mpfr.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mpfr.mk b/src/mpfr.mk
index d39cea7..d17850f 100644
--- a/src/mpfr.mk
+++ b/src/mpfr.mk
@@ -20,13 +20,20 @@ endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
- --host='$(TARGET)' \
- --enable-static \
- --disable-shared \
- --prefix='$(PREFIX)/$(TARGET)' \
+ $(MXE_CONFIGURE_OPTS) \
--enable-threads=win32 \
--with-gmp-include='$(PREFIX)/$(TARGET)/include/'
--with-gmp-lib='$(PREFIX)/$(TARGET)/lib/'
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
+
+ # build runtime tests to verify toolchain components
+ -$(MAKE) -C '$(1)' -j '$(JOBS)' check -k
+ rm -rf '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'
+ cp -R '$(1)/tests' '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests'
+ (printf 'date /t > all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n'; \
+ printf 'time /t >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n'; \
+ printf 'set PATH=..\\;%%PATH%%\r\n'; \
+ printf 'for /R %%%%f in (*.exe) do %%%%f || echo %%%%f fail >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n';) \
+ > '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests/all-tests-$(PKG)-$($(PKG)_VERSION).bat'
endef