tools: flex: fix segfault with glibc 2.26+
authorMarko Ratkaj <marko.ratkaj@sartura.hr>
Tue, 19 Sep 2017 07:35:39 +0000 (09:35 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 Sep 2017 14:28:28 +0000 (16:28 +0200)
commit0fb14a2b1ab2f82ce63f4437b062229d73d90516
treeb6e9c4d752609b84b933cc7bf53d9cf90c0e0e3e
parentf138833d0cd79cf89ebc41dfc3707f52de921736
tools: flex: fix segfault with glibc 2.26+

Fix segmentation fault caused by implicit declaration of function 'reallocarray'. Added patch will enable
reallocarray() prototype in glibc 2.26+ on Linux systems. This fix will be included in flex 2.6.5.

Fixes LEDE issue: FS#1003 (Flex does not build with GCC 7.2)

Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
tools/flex/patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch [new file with mode: 0644]