summaryrefslogtreecommitdiff
path: root/package/gmp
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 19:57:05 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 19:57:05 +0000
commit0d90c8ad1787975d514f04786ed013ec40e7bf73 (patch)
treef889c2a711ee0cfe274bf87e1845d99191bca8f2 /package/gmp
parentee1285f23fe5a043c6fdc40067117ddff0915042 (diff)
- Add libgmp-host and libmpfr-host support. I'll need this for fortran support.
Diffstat (limited to 'package/gmp')
-rw-r--r--package/gmp/gmp.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/gmp/gmp.mk b/package/gmp/gmp.mk
index 3da378e17..acd9e0ecc 100644
--- a/package/gmp/gmp.mk
+++ b/package/gmp/gmp.mk
@@ -85,6 +85,7 @@ endif
$(TARGET_DIR)/lib/libgmp.a
libgmp: uclibc $(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION)
+libgmp-stage: uclibc $(STAGING_DIR)/lib/$(GMP_BINARY)
libgmp-clean:
rm -f $(TARGET_DIR)/lib/$(GMP_BINARY)
@@ -93,6 +94,37 @@ libgmp-clean:
libgmp-dirclean:
rm -rf $(GMP_DIR)
+GMP_HOST_DIR:=$(TOOL_BUILD_DIR)/gmp-$(GMP_VERSION)
+$(GMP_HOST_DIR)/.configured: $(GMP_DIR)/.unpacked
+ [ -d $(GMP_HOST_DIR) ] || mkdir $(GMP_HOST_DIR)
+ (cd $(GMP_HOST_DIR); \
+ CC_FOR_BUILD="$(HOSTCC)" \
+ CC="$(HOSTCC)" \
+ CFLAGS="$(HOST_CFLAGS)" \
+ $(GMP_DIR)/configure \
+ --prefix=$(STAGING_DIR) \
+ --exec_prefix=$(STAGING_DIR) \
+ --libdir=$(STAGING_DIR)/lib \
+ --includedir=$(STAGING_DIR)/include \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --enable-shared \
+ --enable-static \
+ $(DISABLE_NLS) \
+ ) && \
+ touch $(GMP_HOST_DIR)/.configured
+
+$(GMP_HOST_DIR)/.libs/$(GMP_BINARY): $(GMP_HOST_DIR)/.configured
+ $(MAKE) -C $(GMP_HOST_DIR)
+
+libgmp-host: $(GMP_HOST_DIR)/.libs/$(GMP_BINARY)
+
#############################################################
#
# Toplevel Makefile options