Wireshark with Lua on RedHat 8
RedHat 8 comes with Lua 5.3 and I understand that is not supported, however, I have built Lua 5.2.4 from source and installed as per the instructions on the Lua site but when I try to build Wireshark I get a bunch of errors relating to liblua.a along the lines of:
/usr/bin/ld: /usr/local/lib/liblua.a(ltablib.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
(there's about 20 like this).
I have tried adding the -fPIC flag a dozen different ways through environment variables and also in the Lua Makefile and recompiling both Lua and Wireshark but thus far I have not been able to get past this point.
Does anyone have a good guide how to build Wireshark on Red Hat 8 with support for Lua?