From 577488b800f82bcd8bd7a5375a883399f1875787 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 2 Nov 2017 02:22:05 +0100 Subject: [PATCH] flex: Fix building under ubuntu 17.10 --- packages/flex/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/flex/build.sh b/packages/flex/build.sh index c3e763336d..a65dbd192b 100644 --- a/packages/flex/build.sh +++ b/packages/flex/build.sh @@ -10,6 +10,10 @@ TERMUX_PKG_NO_DEVELSPLIT=yes TERMUX_PKG_CONFLICTS="flex-dev" TERMUX_PKG_REPLACES="flex-dev" +# Work around https://github.com/westes/flex/issues/241 when building +# under ubuntu 17.10: +TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS="CFLAGS=-D_GNU_SOURCE=1" + termux_step_pre_configure() { mkdir -p $TERMUX_PKG_BUILDDIR/src/ cp $TERMUX_PKG_HOSTBUILD_DIR/src/stage1flex $TERMUX_PKG_BUILDDIR/src/stage1flex