or
download from https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.bz2
./configure --prefix=/usr \
--docdir=/usr/share/doc/pcre-8.43 \
--enable-unicode-properties \
--enable-pcre16 \
--enable-pcre32 \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 \
--enable-pcretest-libreadline
make
make install
nim --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --passL:-static
--passL:"/usr/lib/libpcre.a" -d:release --opt:size -d:usePcreHeader c osc.nim
strip osc
Run
You don't need copy pcre.h to the path that osc.nim reside