I'm building trunks for both pcre & pcre2
/usr/local/bin/pcre-config --version
8.36
/usr/local/bin/pcre2-config --version
10.10-RC1
Chcking for installed libs
pkg-config libpcre --libs --cflags
-lpcre
but
pkg-config libpcre2
(empty)
Quick look shows, instead
pkg-config libpcre2-8 --libs --cflags
-I/usr/local/include -L/usr/local/lib64 -lpcre2-8
pkg-config libpcre2-posix --libs --cflags
-I/usr/local/include -L/usr/local/lib64 -lpcre2-posix
and
ls -al /usr/local/lib64/libpcre2*
-rwxr-xr-x 1 root root 937 Jan 21 09:06 /usr/local/lib64/libpcre2-8.la*
lrwxrwxrwx 1 root root 19 Jan 21 09:06 /usr/local/lib64/libpcre2-8.so -> libpcre2-8.so.0.0.0*
lrwxrwxrwx 1 root root 19 Jan 21 09:06 /usr/local/lib64/libpcre2-8.so.0 -> libpcre2-8.so.0.0.0*
-rwxr-xr-x 1 root root 471K Jan 21 09:06 /usr/local/lib64/libpcre2-8.so.0.0.0*
-rwxr-xr-x 1 root root 992 Jan 21 09:06 /usr/local/lib64/libpcre2-posix.la*
lrwxrwxrwx 1 root root 23 Jan 21 09:06 /usr/local/lib64/libpcre2-posix.so -> libpcre2-posix.so.0.0.0*
lrwxrwxrwx 1 root root 23 Jan 21 09:06 /usr/local/lib64/libpcre2-posix.so.0 -> libpcre2-posix.so.0.0.0*
-rwxr-xr-x 1 root root 14K Jan 21 09:06 /usr/local/lib64/libpcre2-posix.so.0.0.0*
Should there be just an unversioned 'libpcre2.pc' and /usr/local/lib64/libpcre2.so as well?
I'd suspect upstreams may attempt to default to libpcre2.{pc,so}, as for libpcre.
Or, are there specific reasons NOT to?
Grant