headerscheck: Use ICU_CFLAGS
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 29 Aug 2025 07:00:29 +0000 (09:00 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 29 Aug 2025 07:01:46 +0000 (09:01 +0200)
commit664e0d678965719fe0d385aa3a8f2777058b119b
treee8da2b6b38ad0fb3e60a17230690acfe40084ffb
parent991295f387a6a453fe061831bcc36294989fe77b
headerscheck: Use ICU_CFLAGS

Otherwise, headerscheck will fail if the ICU headers are in a location
not reached by the normal CFLAGS/CPPFLAGS:

../src/include/utils/pg_locale.h:21:10: fatal error: unicode/ucol.h: No such file or directory

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/1127775.1754417387%40sss.pgh.pa.us
src/tools/pginclude/headerscheck