changeset 4632:b23584d79172

build-flex.mk: Don't use reallocarray function when cross compiling.
author John W. Eaton <jwe@octave.org>
date Fri, 23 Mar 2018 00:35:26 -0400
parents da2359935a39
children 7450dc38ccb3
files src/build-flex.mk
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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