Am 17.02.22 um 10:10 schrieb Carlos Velasco:
Hi,

Trying to test latest postfix 3.7.0 with PCRE2 I have found a problem
in building documentation.

According to PCRE_README (http://www.postfix.org/PCRE_README.html),
pcre2-config is used:
"AUXLIBS_PCRE=`pcre2-config --libs`"

But "pcre2-config" doesn't have "--libs" as available argument.

# pcre2-config --help
Usage: pcre2-config [--prefix] [--exec-prefix] [--version] [--libs8]
[--libs-posix] [--libs32] [--libs16]  [--cflags] [--cflags-posix]

Confirmed in debian manpage and source code
https://manpages.debian.org/stretch/libpcre2-dev/pcre2-config.1.en.html
https://github.com/PhilipHazel/pcre2/blob/master/pcre2-config.in

The quick approach would be #define PCRE2_CODE_UNIT_WIDTH 8 in an
appropriate place in the headers (or adding -DPCRE2_CODE_UNIT_WIDTH=8 to
the compiler arguments) and using pcre2-config --libs8 to get the proper
libs argument (-lcpre2-8 on my computer).

Reply via email to