Mercurial > mxe-octave
changeset 3030:0d67b4c363cd
Changes to llvm to build under native mingw
src/llvm.mk: New rule using configure to installing with native ming.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 08 Jun 2013 20:53:29 -0400 |
parents | 2849bea3711f |
children | 951da75fd09c |
files | src/llvm.mk |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/llvm.mk Sat Jun 08 19:00:32 2013 -0400 +++ b/src/llvm.mk Sat Jun 08 20:53:29 2013 -0400 @@ -16,6 +16,22 @@ head -1 endef +ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) +define $(PKG)_BUILD + mkdir '$(1)/build' + cd '$(1)/build' && ../configure \ + $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ + $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ + --enable-targets='host-only' \ + --disable-docs \ + --without-python \ + --disable-shared --enable-static \ + --prefix='$(HOST_PREFIX)' + + PATH='$(HOST_BINDIR):$(PATH)' $(MAKE) -C '$(1)/build' -j $(JOBS) install + $(LN_SF) '$(HOST_BINDIR)/llvm-config' '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-llvm-config' +endef +else define $(PKG)_BUILD mkdir '$(1)/build' cd '$(1)/build' && cmake .. \ @@ -28,3 +44,4 @@ $(MAKE) -C '$(1)/build' -j $(JOBS) install $(LN_SF) '$(HOST_BINDIR)/llvm-config' '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-llvm-config' endef +endif