summaryrefslogtreecommitdiffstats
path: root/src/gcc-mpfr.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-10-19 06:11:43 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-10-19 06:11:43 (GMT)
commit2b82342590795068e41ff72ebbe4d53889475e82 (patch)
treea98819e9ca357d2057fecf0c1b2a3a18fc32ec99 /src/gcc-mpfr.mk
parent2abbc856c59e32f6349afd54a389d03b2eaa6a0a (diff)
downloadmxe-2b82342590795068e41ff72ebbe4d53889475e82.zip
mxe-2b82342590795068e41ff72ebbe4d53889475e82.tar.gz
mxe-2b82342590795068e41ff72ebbe4d53889475e82.tar.bz2
gcc support libraries: build separately in own package rules
Diffstat (limited to 'src/gcc-mpfr.mk')
-rw-r--r--src/gcc-mpfr.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gcc-mpfr.mk b/src/gcc-mpfr.mk
index 5e33038..1cf03b0 100644
--- a/src/gcc-mpfr.mk
+++ b/src/gcc-mpfr.mk
@@ -9,8 +9,19 @@ $(PKG)_SUBDIR = $(mpfr_SUBDIR)
$(PKG)_FILE = $(mpfr_FILE)
$(PKG)_URL = $(mpfr_URL)
$(PKG)_URL_2 = $(mpfr_URL_2)
-$(PKG)_DEPS :=
+$(PKG)_DEPS := gcc-gmp
define $(PKG)_UPDATE
echo $(mpfr_VERSION)
endef
+
+define $(PKG)_BUILD
+ mkdir '$(1).build'
+ cd '$(1).build' && '$(1)/configure' \
+ --prefix='$(PREFIX)' \
+ --with-gmp='$(PREFIX)'
+ $(MAKE) -C '$(1).build' -j '$(JOBS)'
+ $(MAKE) -C '$(1).build' -j 1 install
+endef
+
+$(PKG)_BUILD_$(BUILD) =