# HG changeset patch # User John Donoghue # Date 1380244719 14400 # Node ID 7fb479d0241c149e95dbbc76a391f0140998d2f4 # Parent 11b9d461c135fc0d5538b2bb311b45607567d847 Update build tools for native mingw * src/build-m4.mk: do nothing for native mingw build * Makefile.in: - add bison, m4 as natve mingw, and python as jit build requirements. - remove build-bison as a mingw build dependancy * index.html: Add msys-bison to mingw required packages and mention ghostscript and python. diff -r 11b9d461c135 -r 7fb479d0241c Makefile.in --- a/Makefile.in Mon Sep 23 15:06:17 2013 -0400 +++ b/Makefile.in Thu Sep 26 21:18:39 2013 -0400 @@ -132,6 +132,11 @@ REQUIREMENTS += bsdtar endif +# if we want jit (llvm) we need python +ifeq ($(ENABLE_JIT),yes) + REQUIREMENTS += python +endif + LIBTOOL := libtool LIBTOOLIZE := libtoolize @@ -146,6 +151,18 @@ REQUIREMENTS += flex BUILD_TOOLS := $(filter-out build-flex, $(BUILD_TOOLS)) endif +# Building bison for native mingw creates a bison that doesnt +# allow push-pull mode so disable +ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) + REQUIREMENTS += bison + BUILD_TOOLS := $(filter-out build-bison, $(BUILD_TOOLS)) +endif +# use the msys m4 in native mingw +ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) + REQUIREMENTS += m4 +endif + + ifeq ($(USE_SYSTEM_GCC),yes) BUILD_TOOLS := $(filter-out $(BUILD_COMPILER_TOOLS), $(BUILD_TOOLS)) endif diff -r 11b9d461c135 -r 7fb479d0241c index.html --- a/index.html Mon Sep 23 15:06:17 2013 -0400 +++ b/index.html Thu Sep 26 21:18:39 2013 -0400 @@ -767,12 +767,15 @@
mingw-get upgrade

And then get required packages. -

mingw-get install autoconf bash msys-flex gcc gcc-c++ \
+    
mingw-get install autoconf bash msys-bison msys-flex gcc gcc-c++ \
 	      gcc-fortran gettext msys-m4 msys-make msys-sed \
 	      libiconv msys-openssl msys-patch msys-perl \
               msys-libarchive msys-unzip msys-wget msys-bsdtar
     

+ You will also need to install Windows versions of python + and ghostscript and ensure they are in visisble in the PATH. +

openSUSE

diff -r 11b9d461c135 -r 7fb479d0241c src/build-m4.mk --- a/src/build-m4.mk Mon Sep 23 15:06:17 2013 -0400 +++ b/src/build-m4.mk Thu Sep 26 21:18:39 2013 -0400 @@ -14,6 +14,11 @@ echo $($(PKG)_VERSION) endef +ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) +define $(PKG)_BUILD + echo "Ignoring build-m4 for native mingw build" +endef +else define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && '$(1)/configure' \ @@ -21,3 +26,4 @@ $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install endef +endif