tce-load -i compiletc bzip2-dev readline-dev wget https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2 cd pcre2-10.42 CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --enable-unicode --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-libz --enable-pcre2grep-libbz2 --enable-pcre2test-libreadline --enable-jit find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m 54.88s] sudo make install pcre2-10.42 configuration summary: Install prefix ..................... : /usr/local C preprocessor ..................... : C compiler ......................... : gcc -flto -mtune=generic -Os -pipe Linker ............................. : /usr/local/bin/ld -m elf_x86_64 C preprocessor flags ............... : C compiler flags ................... : -O2 -fvisibility=hidden Linker flags ....................... : Extra libraries .................... : Build 8-bit pcre2 library .......... : yes Build 16-bit pcre2 library ......... : yes Build 32-bit pcre2 library ......... : yes Include debugging code ............. : no Enable JIT compiling support ....... : yes Use SELinux allocator in JIT ....... : no Enable Unicode support ............. : yes Newline char/sequence .............. : lf \R matches only ANYCRLF ............ : no \C is disabled ..................... : no EBCDIC coding ...................... : no EBCDIC code for NL ................. : n/a Rebuild char tables ................ : no Internal link size ................. : 2 Nested parentheses limit ........... : 250 Heap limit ......................... : 20000000 kibibytes Match limit ........................ : 10000000 Match depth limit .................. : MATCH_LIMIT Build shared libs .................. : yes Build static libs .................. : no Use JIT in pcre2grep ............... : yes Enable callouts in pcre2grep ....... : yes Enable fork in pcre2grep callouts .. : yes Initial buffer size for pcre2grep .. : 20480 Maximum buffer size for pcre2grep .. : 1048576 Link pcre2grep with libz ........... : yes Link pcre2grep with libbz2 ......... : yes Link pcre2test with libedit ........ : no Link pcre2test with libreadline .... : yes Valgrind support ................... : no Code coverage ...................... : no Fuzzer support ..................... : no Use %zu and %td .................... : auto