Build gmp and mpfr libary on x86_32 only (fix #135)

By now the gmp-library works builds on x86/32bit only. The mpfr library
depends on gmp, so make both library dependent on the corresponding platform
variables. Look at the discussion of issue #135.
This commit is contained in:
Stefan Kalkowski 2012-05-29 11:45:54 +02:00 committed by Christian Helmuth
parent 34efd709cc
commit 337bb6d5f8
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@ ifeq ($(wildcard $(GMP_DIR)),)
REQUIRES += prepare_gmp
endif
# gmp depends on gmp-mpn which requires 32bit by now
REQUIRES = x86_32
include $(REP_DIR)/lib/import/import-gmp.mk
LIBS += libc

View File

@ -4,8 +4,8 @@ ifeq ($(wildcard $(MPFR_DIR)),)
REQUIRES += prepare_mpfr
endif
# mpfr depends on gmp, which is only supported on x86 yet
REQUIRES += x86
# mpfr depends on gmp, which is only supported on x86_32 yet
REQUIRES += x86_32
LIBS = libc gmp
CC_OPT += -DHAVE_STDARG -DHAVE_VA_COPY -DHAVE_INTTYPES_H