Mercurial > hg > mxe-octave-anirudha
changeset 3231:3f87daaad087
[Darwin] Enable MPFR compilation
author | Anirudha Bose <ani07nov@gmail.com> |
---|---|
date | Mon, 23 Sep 2013 23:36:59 +0530 |
parents | 51095550ab46 |
children | acec083ac83b |
files | src/mpfr.mk |
diffstat | 1 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mpfr.mk +++ b/src/mpfr.mk @@ -17,7 +17,20 @@ head -1 endef -define $(PKG)_BUILD +ifeq ($(MXE_SYSTEM),darwin) + define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ + $(ENABLE_SHARED_OR_STATIC) \ + --prefix='$(HOST_PREFIX)' \ + LDFLAGS="-Wl,-L$(HOST_LIBDIR)" \ + CPPFLAGS="-I$(HOST_INCDIR)" \ + --disable-thread-safe + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install + endef +else + define $(PKG)_BUILD cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ @@ -27,4 +40,5 @@ --with-gmp-lib='$(HOST_LIBDIR)' $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j '$(JOBS)' install -endef + endef +endif