Mercurial > hg > mxe-octave-anirudha
changeset 3019:d4c8aa885d1b
Update build-pkg-config.mk for native mingw build flags
* src/build-pkg-config.mk:
set CPPFLAGS='-march=i486' LN=$(LN) options for native mingw configure
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 08 Jun 2013 09:54:13 -0400 |
parents | 051574ceb3fc |
children | 41800279e33a |
files | src/build-pkg-config.mk |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/build-pkg-config.mk +++ b/src/build-pkg-config.mk @@ -14,10 +14,16 @@ echo $($(PKG)_VERSION) endef +# native mingw needs to be told an architechure for the internal glib to build +ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) + $(PKG)_CONFIG_OPTS := CPPFLAGS='-march=i486' LN=$(LN) +endif + define $(PKG)_BUILD mkdir '$(1).build' cd '$(1).build' && '$(1)/configure' \ --with-internal-glib \ + $($(PKG)_CONFIG_OPTS) \ --with-pc-path='$(HOST_LIBDIR)/pkgconfig' \ --prefix='$(BUILD_TOOLS_PREFIX)' $(MAKE) -C '$(1).build' -j '$(JOBS)'