tce-load -i compiletc bzip2-dev readline-dev

cd pcre2-10.32

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -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 48.05s]
make install

pcre2-10.32 configuration summary:

    Install prefix ..................... : /usr/local
    C preprocessor ..................... : gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -E
    C compiler ......................... : gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe
    Linker ............................. : /usr/local/bin/ld
    C preprocessor flags ............... : 
    C compiler flags ................... : -pthread -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
    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
