erlang: fix mis-detection of transparent hugepages
authorAleksey Vasilenko <aleksey.vasilenko@gmail.com>
Fri, 7 Jun 2024 07:48:51 +0000 (10:48 +0300)
committerRosen Penev <rosenp@gmail.com>
Sun, 9 Jun 2024 02:45:19 +0000 (19:45 -0700)
commitfa7b780cbf179a0d4ca50d0dfbd75e2fc75e53b6
tree98880c9a30872c853a7b1dccd7b6c63262b50d2d
parentea8e6fbf33728ecc0546764b115bd2701d87e4aa
erlang: fix mis-detection of transparent hugepages

Latest Erlang update incorrectly detects THP as always enabled,
which leads to segmentation fault on systems without transparent hugepages.
Here we manually override configure flag by checking actual option of target kernel.

Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
lang/erlang/Makefile