xref: /OK3568_Linux_fs/buildroot/package/flex/flex.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# flex
4#
5################################################################################
6
7FLEX_VERSION = 2.6.4
8FLEX_SITE = https://github.com/westes/flex/files/981163
9FLEX_INSTALL_STAGING = YES
10FLEX_LICENSE = FLEX
11FLEX_LICENSE_FILES = COPYING
12FLEX_CPE_ID_VENDOR = flex_project
13# bug does not cause stack overflows in the generated code and has been
14# noted upstream as a bug in the code generator
15FLEX_IGNORE_CVES = CVE-2019-6293
16FLEX_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-m4
17HOST_FLEX_DEPENDENCIES = host-m4
18
19# 0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch
20# 0002-build-make-it-possible-to-disable-the-build-of-the-f.patch
21# 0003-build-make-it-possible-to-disable-the-build-of-the-d.patch
22FLEX_AUTORECONF = YES
23FLEX_GETTEXTIZE = YES
24FLEX_CONF_ENV = ac_cv_path_M4=/usr/bin/m4 \
25	ac_cv_func_reallocarray=no
26
27# Don't enable programs, they are not needed on the target, and
28# require MMU support.
29# Don't enable the doc, it's not needed on the target and requires
30# special tools (help2man) to build.
31FLEX_CONF_OPTS += --disable-program --disable-doc
32HOST_FLEX_CONF_OPTS = --disable-doc
33
34$(eval $(autotools-package))
35$(eval $(host-autotools-package))
36