# HG changeset patch # User John Donoghue # Date 1370739209 14400 # Node ID 0d67b4c363cd78a18fe568c78e21a63fd1b5da9b # Parent 2849bea3711f87ed17a96436df8e025b42a35009 Changes to llvm to build under native mingw src/llvm.mk: New rule using configure to installing with native ming. diff -r 2849bea3711f -r 0d67b4c363cd src/llvm.mk --- 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