# HG changeset patch # User John W. Eaton # Date 1521779726 14400 # Node ID b23584d791724631e6066441062c24fa5e2c7909 # Parent da2359935a39a5683209a98a4ac5aa4272dab297 build-flex.mk: Don't use reallocarray function when cross compiling. diff -r da2359935a39 -r b23584d79172 src/build-flex.mk --- a/src/build-flex.mk Wed Mar 21 12:53:10 2018 -0400 +++ b/src/build-flex.mk Fri Mar 23 00:35:26 2018 -0400 @@ -16,9 +16,13 @@ tail -1 endef +ifeq ($(MXE_NATIVE_BUILD),no) + $(PKG)_CONFIGURE_OPTIONS := ac_cv_func_reallocarray=no +endif + define $(PKG)_BUILD mkdir '$(1).build' - cd '$(1).build' && '$(1)/configure' \ + cd '$(1).build' && '$(1)/configure' $($(PKG)_CONFIGURE_OPTIONS) \ --prefix='$(BUILD_TOOLS_PREFIX)' $(MAKE) -C '$(1).build' -j '$(JOBS)' $(MAKE) -C '$(1).build' -j 1 install