diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-10-19 06:11:43 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-10-19 06:11:43 (GMT) |
commit | 2b82342590795068e41ff72ebbe4d53889475e82 (patch) | |
tree | a98819e9ca357d2057fecf0c1b2a3a18fc32ec99 /src/gcc-mpc.mk | |
parent | 2abbc856c59e32f6349afd54a389d03b2eaa6a0a (diff) | |
download | mxe-2b82342590795068e41ff72ebbe4d53889475e82.zip mxe-2b82342590795068e41ff72ebbe4d53889475e82.tar.gz mxe-2b82342590795068e41ff72ebbe4d53889475e82.tar.bz2 |
gcc support libraries: build separately in own package rules
Diffstat (limited to 'src/gcc-mpc.mk')
-rw-r--r-- | src/gcc-mpc.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gcc-mpc.mk b/src/gcc-mpc.mk index 44bf20d..d150988 100644 --- a/src/gcc-mpc.mk +++ b/src/gcc-mpc.mk @@ -9,8 +9,19 @@ $(PKG)_SUBDIR = $(mpc_SUBDIR) $(PKG)_FILE = $(mpc_FILE) $(PKG)_URL = $(mpc_URL) $(PKG)_URL_2 = $(mpc_URL_2) -$(PKG)_DEPS := +$(PKG)_DEPS := gcc-gmp gcc-mpfr define $(PKG)_UPDATE echo $(mpc_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) = |